Update room display management where needed.

This commit is contained in:
SBiOSoftWhare
2021-10-12 19:22:46 +02:00
parent 765a554c27
commit 3949e18f79
4 changed files with 72 additions and 24 deletions
@@ -139,6 +139,17 @@
}
}
- (void)showRoomWithId:(NSString*)roomId
andEventId:(NSString*)eventId
inMatrixSession:(MXSession*)session
{
RoomPresentationParameters *parameters = [[RoomPresentationParameters alloc] initWithRoomId:roomId
eventId:eventId mxSession:session
restoreInitialDisplay:NO stackAboveVisibleViews:NO];
[[AppDelegate theDelegate] showRoomWithParameters:parameters];
}
#pragma mark - MXKDataSourceDelegate
- (Class<MXKCellRendering>)cellViewClassForCellData:(MXKCellData*)cellData
@@ -188,9 +199,9 @@
[tableView deselectRowAtIndexPath:indexPath animated:YES];
// Make the master tabBar view controller open the RoomViewController
[[AppDelegate theDelegate].masterTabBarController selectRoomWithId:cellData.roomId
andEventId:_selectedEvent.eventId
inMatrixSession:self.mainSession];
[self showRoomWithId:cellData.roomId
andEventId:_selectedEvent.eventId
inMatrixSession:self.mainSession];
// Reset the selected event. HomeViewController got it when here
_selectedEvent = nil;