Open aWeinzierl opened 5 months ago
In legacy crypto, we used to download the full key backup after verification (in the background); element R no longer does this. (Element-R does try to download individual keys, but it's unclear if, for example, it will retry any UTDs that are already on-screen)
do we need to sort out https://github.com/element-hq/element-meta/issues/2176 for this ?
In legacy crypto, we used to download the full key backup after verification (in the background); element R no longer does this. (Element-R does try to download individual keys, but it's unclear if, for example, it will retry any UTDs that are already on-screen)
Oddly, if you verify with the security key/phrase, it seems we do attempt to restore the backup in the background. (Though we don't show that in the UI, see https://github.com/element-hq/element-web/issues/17839)
Thoughts on implementing this:
MatrixClient.restoreKeyBackup*
methods into the legacy crypto codebase. Add some thin, deprecated, wrappers in MatrixClient which do nothing unless legacy crypto is being used. Remove CryptoBackend.getBackupDecryptor
.get_backup_keys
. We'll need to add support to all the crypto stores and expose setters and getters in the bindings.PerSessionKeyBackupDownloader
into BackupDownloadManager
.BackupDownloadManager.internalCheckFromServer
, where it updates the configuration, fire off a task which will:
BackupDownloadManager
configuration
is null or stop
is trueCryptoApi
Steps to reproduce
Unable to decrypt message
Outcome
What did you expect?
.6. all my messages decrypted, or being decrypted .9. no request for security key .11. see success dialogue
What happened instead?
.6. messages not decryptable .9. security key was requested, despite verification .11. see request for security key again
Operating system
Windows 10
Application version
Element version: 1.11.58 Crypto version: Rust SDK 0.7.0 (691ec63), Vodozemac 0.5.0
How did you install the app?
https://element.io/get-started
Homeserver
matrix.org
Will you send logs?
Yes