Only show key backup reminder when confirmed by server to be missing

The key backup reminder was being shown too eagerly in cases when we hadn't
actually checked with the homeserver on key backup status. This changes to only
show the reminder when we're sure a backup doesn't exist.

Fixes https://github.com/vector-im/riot-web/issues/13404
pull/21833/head
J. Ryan Stinnett 2020-04-30 15:41:49 +01:00
parent 3502b90aeb
commit d3ce4072d4
1 changed files with 1 additions and 1 deletions

View File

@ -1768,7 +1768,7 @@ export default createReactClass({
const showRoomRecoveryReminder = (
SettingsStore.getValue("showRoomRecoveryReminder") &&
this.context.isRoomEncrypted(this.state.room.roomId) &&
!this.context.getKeyBackupEnabled()
this.context.getKeyBackupEnabled() === false
);
const hiddenHighlightCount = this._getHiddenHighlightCount();