Adapt to cell data changes

This commit is contained in:
ismailgulek
2021-09-22 11:46:12 +03:00
parent e7db1f9889
commit 7be98ecf8e
6 changed files with 13 additions and 17 deletions
@@ -87,7 +87,7 @@ NSString *const kInviteRecentTableViewCellRoomKey = @"kInviteRecentTableViewCell
{
if (self.delegate)
{
MXRoom *room = roomCellData.roomSummary.room;
MXRoom *room = [roomCellData.mxSession roomWithRoomId:roomCellData.roomSummary.roomId];
if (room)
{
@@ -99,16 +99,11 @@ NSString *const kInviteRecentTableViewCellRoomKey = @"kInviteRecentTableViewCell
- (void)render:(MXKCellData *)cellData
{
[super render:cellData];
MXRoom *room = roomCellData.roomSummary.room;
if (room.roomId)
{
[self updateViewsWithRoom:room showPreviewButton:NO];
}
[self updateViewsWithRoom:roomCellData.roomSummary showPreviewButton:NO];
}
- (void)updateViewsWithRoom:(MXRoom*)room showPreviewButton:(BOOL)showPreviewButton
- (void)updateViewsWithRoom:(id<MXRoomSummaryProtocol>)room showPreviewButton:(BOOL)showPreviewButton
{
NSString *rightButtonTitle;