mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Update Console by using MXKAuthenticationViewController and MXKAccount classes.
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
// Check whether we're not logged in
|
||||
if (![MatrixHandler sharedHandler].accessToken) {
|
||||
if (![MXKAccountManager sharedManager].accounts.count) {
|
||||
[self showAuthenticationScreen];
|
||||
}
|
||||
}
|
||||
@@ -215,7 +215,16 @@
|
||||
}
|
||||
|
||||
- (void)setVisibleRoomId:(NSString *)aVisibleRoomId {
|
||||
[[MatrixHandler sharedHandler] restoreInAppNotificationsForRoomId:aVisibleRoomId];
|
||||
|
||||
// Presently only the first account is used
|
||||
// TODO GFO: handle multi-session
|
||||
MXKAccount *account = [[MXKAccountManager sharedManager].accounts firstObject];
|
||||
if (account) {
|
||||
// Enable inApp notification for this room
|
||||
[account updateNotificationListenerForRoomId:aVisibleRoomId ignore:NO];
|
||||
}
|
||||
|
||||
|
||||
_visibleRoomId = aVisibleRoomId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user