From d3ce4072d481cf935025fbc4f58ba53edbdcaf44 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 30 Apr 2020 15:41:49 +0100 Subject: [PATCH] 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 --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 179e0aa2e9..4f9c0a7c91 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -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();