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:
Luke Barnard 2017-10-24 10:13:38 +01:00
parent 65ce71e6af
commit e419446081
2 changed files with 30 additions and 12 deletions

View file

@ -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,
};
}