Key backup: Check backup update on the homeserver

when opening the home or the settings screen in order to display the right banner and settings.
This commit is contained in:
manuroe
2019-02-06 17:34:16 +01:00
parent 10d792dd3e
commit 7c370e5feb
2 changed files with 6 additions and 0 deletions
@@ -152,6 +152,9 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
- (void)registerKeyBackupStateDidChangeNotification
{
// Check homeserver update in background
[self.mxSession.crypto.backup forceRefresh:nil failure:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyBackupStateDidChangeNotification:) name:kMXKeyBackupDidStateChangeNotification object:nil];
}