You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Check whether crypto is enabled in room recovery reminder
This avoids a soft crash that may occur otherwise. Fixes https://github.com/vector-im/riot-web/issues/14289
This commit is contained in:
@@ -1819,6 +1819,7 @@ export default createReactClass({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const showRoomRecoveryReminder = (
|
const showRoomRecoveryReminder = (
|
||||||
|
this.context.isCryptoEnabled() &&
|
||||||
SettingsStore.getValue("showRoomRecoveryReminder") &&
|
SettingsStore.getValue("showRoomRecoveryReminder") &&
|
||||||
this.context.isRoomEncrypted(this.state.room.roomId) &&
|
this.context.isRoomEncrypted(this.state.room.roomId) &&
|
||||||
this.context.getKeyBackupEnabled() === false
|
this.context.getKeyBackupEnabled() === false
|
||||||
|
|||||||
Reference in New Issue
Block a user