Skip to content

Commit

Permalink
chore(crypto api): add logging in resetEncryption
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jan 23, 2025
1 parent 8770b56 commit e69f10f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rust-crypto/rust-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,8 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
* Implementation of {@link CryptoApi#resetEncryption}.
*/
public async resetEncryption(authUploadDeviceSigningKeys: UIAuthCallback<void>): Promise<void> {
this.logger.debug("resetEncryption: resetting encryption");

// Disable backup, and delete all the backups from the server
await this.backupManager.deleteAllKeyBackupVersions();

Expand All @@ -1491,6 +1493,8 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH

// Create a new key backup
await this.resetKeyBackup();

this.logger.debug("resetEncryption: ended");
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit e69f10f

Please sign in to comment.