Closed ghost closed 4 years ago
getJoinedRooms()
- gets list of rooms the user joined
getInvitedRooms()
- gets list of rooms the user is invited
Those methods return an array of MXRoomAttributes, which has a members
property from which you can read user information.
Also, it contains a last_message
property which contains the last message in the room.
If you need more reference, check the typings file: https://github.com/cuvent/react-native-matrix-sdk/blob/master/types/index.d.ts#L83
I need to show list of members with the name, profile pic and last message I'd begun chat with. Please suggest.