mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
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:
@@ -68,6 +68,9 @@ final class SettingsKeyBackupViewModel: SettingsKeyBackupViewModelType {
|
||||
|
||||
private func checkKeyBackupState() {
|
||||
|
||||
// Check homeserver update in background
|
||||
self.keyBackup.forceRefresh(nil, failure: nil)
|
||||
|
||||
if let keyBackupVersion = self.keyBackup.keyBackupVersion {
|
||||
|
||||
self.keyBackup.trust(for: keyBackupVersion, onComplete: { [weak self] (keyBackupVersionTrust) in
|
||||
|
||||
Reference in New Issue
Block a user