Add fields needed by RoomDetailList to groupRoomFromApiObject
and also alter props API for RDL to match the returned rooms. (This doesn't affect RoomDirectory - this does not use RDL (yet))
This commit is contained in:
parent
65ce71e6af
commit
e419446081
2 changed files with 30 additions and 12 deletions
|
@ -43,5 +43,9 @@ export function groupRoomFromApiObject(apiObject) {
|
|||
roomId: apiObject.room_id,
|
||||
canonicalAlias: apiObject.canonical_alias,
|
||||
avatarUrl: apiObject.avatar_url,
|
||||
topic: apiObject.topic,
|
||||
numJoinedMembers: apiObject.num_joined_members,
|
||||
worldReadable: apiObject.world_readable,
|
||||
canGuestsJoin: apiObject.can_guests_join,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue