iOS Console: support multi-sessions in Recents and Settings Tabs.

(TODO: update `Home` and `Contacts` Tabs, presently these 2 tabs consider only the first created matrix session).
This commit is contained in:
giomfo
2015-05-21 19:06:34 +02:00
parent ec432e7939
commit a616b81742
3 changed files with 51 additions and 20 deletions
@@ -247,7 +247,7 @@
// Select room to display its details (dispatch this action in order to let TabBarController end its refresh)
dispatch_async(dispatch_get_main_queue(), ^{
recentsViewController.selectedRoomId = roomId;
[recentsViewController selectRoomWithId:roomId inMatrixSession:nil]; // TODO a matrix session is required here
});
}
@@ -256,7 +256,7 @@
if (recentsViewController) {
[recentsNavigationController popToViewController:recentsViewController animated:animated];
// Release the current selected room
recentsViewController.selectedRoomId = nil;
[recentsViewController closeSelectedRoom];
}
}