mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
@@ -322,6 +322,8 @@ SingleImagePickerPresenterDelegate>
|
||||
[self refreshSettings];
|
||||
|
||||
}];
|
||||
|
||||
[self registerAccountDataDidChangeIdentityServerNotification];
|
||||
|
||||
// Add each matrix session, to update the view controller appearance according to mx sessions state
|
||||
NSArray *sessions = [AppDelegate theDelegate].mxSessions;
|
||||
@@ -4537,4 +4539,17 @@ SingleImagePickerPresenterDelegate>
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - Identity Server updates
|
||||
|
||||
- (void)registerAccountDataDidChangeIdentityServerNotification
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleAccountDataDidChangeIdentityServerNotification:) name:kMXSessionAccountDataDidChangeIdentityServerNotification object:nil];
|
||||
}
|
||||
|
||||
- (void)handleAccountDataDidChangeIdentityServerNotification:(NSNotification*)notification
|
||||
{
|
||||
[self refreshSettings];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user