diff --git a/src/domain/session/settings/KeyBackupViewModel.js b/src/domain/session/settings/KeyBackupViewModel.js index 69e87e5d..b44de7e5 100644 --- a/src/domain/session/settings/KeyBackupViewModel.js +++ b/src/domain/session/settings/KeyBackupViewModel.js @@ -53,12 +53,11 @@ export class KeyBackupViewModel extends ViewModel { const keyBackup = this._session.keyBackup.get(); if (keyBackup) { status = keyBackup.needsNewKey ? Status.NewVersionAvailable : Status.Enabled; - } else { + } else if (keyBackup === null) { status = this.showPhraseSetup() ? Status.SetupPhrase : Status.SetupKey; - } /* TODO: bring back "waiting to get online" - else { + } else { status = Status.Pending; - } */ + } const changed = status !== this._status; this._status = status; return changed; diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 17c809bd..868a743b 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -289,9 +289,15 @@ export class Session { } catch (err) { log.catch(err); } + return false; }); } + /** + * @type {ObservableValue