Group details: Add Rooms page

https://github.com/vector-im/riot-meta/issues/117
This commit is contained in:
Giom Foret
2017-12-31 12:52:22 +01:00
parent 6dc333e838
commit 670ef42634
11 changed files with 1011 additions and 22 deletions
@@ -15,8 +15,10 @@
*/
#import "GroupDetailsViewController.h"
#import "GroupHomeViewController.h"
#import "GroupParticipantsViewController.h"
#import "GroupRoomsViewController.h"
#import "AppDelegate.h"
@@ -24,6 +26,7 @@
{
GroupHomeViewController *groupHomeViewController;
GroupParticipantsViewController *groupParticipantsViewController;
GroupRoomsViewController *groupRoomsViewController;
/**
mask view while processing a request
@@ -98,7 +101,13 @@
[viewControllers addObject:groupParticipantsViewController];
// Rooms tab
//[titles addObject: NSLocalizedStringFromTable(@"group_details_rooms", @"Vector", nil)];
[titles addObject: NSLocalizedStringFromTable(@"group_details_rooms", @"Vector", nil)];
groupRoomsViewController = [GroupRoomsViewController groupRoomsViewController];
if (_group)
{
[groupRoomsViewController setGroup:_group withMatrixSession:_mxSession];
}
[viewControllers addObject:groupRoomsViewController];
self.title = NSLocalizedStringFromTable(@"group_details_title", @"Vector", nil);
[self initWithTitles:titles viewControllers:viewControllers defaultSelected:0];
@@ -176,6 +185,10 @@
{
[groupParticipantsViewController setGroup:group withMatrixSession:mxSession];
}
if (groupRoomsViewController)
{
[groupRoomsViewController setGroup:group withMatrixSession:mxSession];
}
}
- (void)withdrawViewControllerAnimated:(BOOL)animated completion:(void (^)(void))completion