Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable key upload to backups where we have the decryption key #4677

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
2 changes: 1 addition & 1 deletion src/rust-crypto/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class RustBackupManager extends TypedEventEmitter<RustBackupCryptoEvents,

const trustInfo = await this.isKeyBackupTrusted(backupInfo);

if (!trustInfo.trusted) {
if (!trustInfo.matchesDecryptionKey && !trustInfo.trusted) {
ajbura marked this conversation as resolved.
Show resolved Hide resolved
if (activeVersion !== null) {
logger.log("Key backup present on server but not trusted: disabling key backup");
await this.disableKeyBackup();
Expand Down
Loading