mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Update room display management where needed.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user