Fix toast showing condition

This commit is contained in:
David Baker
2025-01-28 16:35:54 +00:00
parent 97057de900
commit 4ec09f0063

View File

@@ -320,7 +320,7 @@ export default class DeviceListener {
} else if (defaultKeyId === null) {
// the user just hasn't set up 4S yet: prompt them to do so (unless they've explicitly said no to backups)
const disabledEvent = cli.getAccountData("m.org.matrix.custom.backup_disabled");
if (disabledEvent && !disabledEvent.getContent()?.disabled) {
if (!disabledEvent || !disabledEvent.getContent()?.disabled) {
showSetupEncryptionToast(SetupKind.SET_UP_RECOVERY);
}
} else {