Skip to content

Commit

Permalink
Update src/rust-crypto/rust-crypto.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Richard van der Hoff <[email protected]>
  • Loading branch information
BillCarsonFr and richvdh authored Oct 17, 2023
1 parent 0482354 commit c455eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-crypto/rust-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, RustCryptoEv
private async handleSecretReceived(name: string, value: string): Promise<boolean> {
this.logger.debug(`onReceiveSecret: Received secret ${name}`);
if (name === "m.megolm_backup.v1") {
const isHandled = await this.backupManager.handleBackupSecretReceived(value);
return await this.backupManager.handleBackupSecretReceived(value);

// XXX at this point we should probably try to download the backup and import the keys,
// or at least retry for the current decryption failures?
Expand Down

0 comments on commit c455eff

Please sign in to comment.