Element R | After a backup is deleted the sdk keeps trying to download keys from it #26535
Labels
A-Element-R
Issues affecting the port of Element's crypto layer to Rust
Z-Element-R-Blocker
A blocker for enabling Element R by default
Z-Labs
Step to reproduce
n
, and ensure that the backup private key is cached locally=> Delete the backup (maybe from another client). Now the current backup is
n-1
Actual
The
queryKeyBackup()
api (called on fail to decrypt) keeps querying to versionn
=> This is because the backup key in cache is still
(version:n, privKey: xxx)
https://github.com/matrix-org/matrix-js-sdk/blob/5931a5119c9f792a34ec5c1461da2c939b6326d3/src/rust-crypto/rust-crypto.ts#L202
Legacy is a bit different as the version of the backup is not saved in cache, so it has to check what's the current backup version.
Expected
This is a case of desynchronised cache / 4S, the silver bullet fix should ensure that deleting a backup keeps the "recovery" in a valid state.
m.megolm_backup.v1
account data), update the cacheThe text was updated successfully, but these errors were encountered: