Matrix-js: persist backup key cache before verify exit

This commit is contained in:
Gustavo Madeira Santana
2026-02-25 16:12:11 -05:00
parent 97c52c4c05
commit 204b64dbbc
4 changed files with 38 additions and 56 deletions

View File

@@ -123,12 +123,12 @@ function describeBackupIssue(backup: MatrixCliBackupStatus): string | null {
if (!backup.serverVersion) {
return "no room-key backup exists on the homeserver";
}
if (backup.matchesDecryptionKey === false) {
return "backup key mismatch (this device does not have the matching backup decryption key)";
}
if (backup.decryptionKeyCached === false) {
return "backup decryption key is not loaded on this device";
}
if (backup.matchesDecryptionKey === false) {
return "backup key mismatch (this device does not have the matching backup decryption key)";
}
if (backup.trusted === false) {
return "backup signature chain is not trusted by this device";
}