mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
[Spaces] Show suggested in room lists #4501
- Show suggested rooms section in home screen (no actions) - Show suggested rooms section in rooms screen (no actions)
This commit is contained in:
@@ -147,7 +147,14 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
|
||||
self.directRoomBorderView.hidden = !roomCellData.roomSummary.room.isDirect;
|
||||
|
||||
[roomCellData.roomSummary setRoomAvatarImageIn:self.roomAvatar];
|
||||
if (roomCellData.roomSummary)
|
||||
{
|
||||
[roomCellData.roomSummary setRoomAvatarImageIn:self.roomAvatar];
|
||||
}
|
||||
else
|
||||
{
|
||||
[roomCellData.spaceChildInfo setRoomAvatarImageIn:self.roomAvatar mediaManager:roomCellData.recentsDataSource.mxSession.mediaManager];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +195,7 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
{
|
||||
if (roomCellData)
|
||||
{
|
||||
return roomCellData.roomSummary.roomId;
|
||||
return roomCellData.spaceChildInfo ? roomCellData.spaceChildInfo.childRoomId : roomCellData.roomSummary.roomId;
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user