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:
@@ -91,7 +91,7 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
self.lastEventDate.text = roomCellData.lastEventDate;
|
||||
|
||||
// Manage lastEventAttributedTextMessage optional property
|
||||
if ([roomCellData respondsToSelector:@selector(lastEventAttributedTextMessage)])
|
||||
if (!roomCellData.spaceChildInfo && [roomCellData respondsToSelector:@selector(lastEventAttributedTextMessage)])
|
||||
{
|
||||
// Force the default text color for the last message (cancel highlighted message color)
|
||||
NSMutableAttributedString *lastEventDescription = [[NSMutableAttributedString alloc] initWithAttributedString:roomCellData.lastEventAttributedTextMessage];
|
||||
@@ -141,7 +141,14 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
|
||||
self.directRoomBorderView.hidden = !roomCellData.roomSummary.room.isDirect;
|
||||
|
||||
[roomCellData.roomSummary setRoomAvatarImageIn:self.roomAvatar];
|
||||
if (roomCellData.spaceChildInfo)
|
||||
{
|
||||
[roomCellData.spaceChildInfo setRoomAvatarImageIn:self.roomAvatar mediaManager:roomCellData.recentsDataSource.mxSession.mediaManager];
|
||||
}
|
||||
else
|
||||
{
|
||||
[roomCellData.roomSummary setRoomAvatarImageIn:self.roomAvatar];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user