mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
SegmentedViewController : add the unreachable homeserver management (i.e. the navbar background color becomes red)
This commit is contained in:
@@ -245,6 +245,9 @@
|
||||
MXSession* session = self.roomDataSource.mxSession;
|
||||
NSString* roomid = self.roomDataSource.roomId;
|
||||
|
||||
// to display a red navbar when the home server cannot be reached.
|
||||
[segmentedViewController addMatrixSession:session];
|
||||
|
||||
NSMutableArray* viewControllers = [[NSMutableArray alloc] init];
|
||||
NSMutableArray* titles = [[NSMutableArray alloc] init];
|
||||
|
||||
@@ -260,6 +263,7 @@
|
||||
[settingsViewController initWithSession:session andRoomId:roomid];
|
||||
[viewControllers addObject:settingsViewController];
|
||||
|
||||
|
||||
segmentedViewController.title = NSLocalizedStringFromTable(@"room_details_title", @"Vector", nil);
|
||||
[segmentedViewController initWithTitles:titles viewControllers:viewControllers defaultSelected:0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user