mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-09 09:27:42 +02:00
Group details: Add Rooms page
https://github.com/vector-im/riot-meta/issues/117
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user