Multi-sessions handling: Restore automatic room opening

This commit is contained in:
giomfo
2015-05-28 19:20:18 +02:00
parent f9ff8e8eda
commit dd525d9053
6 changed files with 136 additions and 150 deletions
@@ -219,17 +219,15 @@
[self setSelectedIndex:TABBAR_HOME_INDEX];
}
- (void)showRoom:(NSString*)roomId {
- (void)showRoom:(NSString*)roomId withMatrixSession:(MXSession*)mxSession {
[self restoreInitialDisplay];
// Switch on Recents Tab
[self setSelectedIndex:TABBAR_RECENTS_INDEX];
// TODO GFO handle multi-session
// Select room to display its details (dispatch this action in order to let TabBarController end its refresh)
dispatch_async(dispatch_get_main_queue(), ^{
[recentsViewController selectRoomWithId:roomId inMatrixSession:nil]; // TODO a matrix session is required here
[recentsViewController selectRoomWithId:roomId inMatrixSession:mxSession];
});
}