Restore keybackup after verification will freeze E2EE for big backups #23359
Labels
A-E2EE-Key-Backup
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Defect
Steps to reproduce
Outcome
Actual
As soon as the backup is downloaded the SDK will start looping to decrypt all keys and import them.
Log is full of this
Now you can see incoming messages in e2ee rooms.
If you try to send a message, it will be stuck until all backup is imported
=> For my backup its more than half an hour
Workaround => refresh the page to stop that auto import (at the risk of losing the unprocessed to_device received meanwhile)
Expected
It should not import the full backup like that, unless there is a proper way to have it in background, with user feedback, by chunks and priorize per active rooms.
It can just be disabled now, as the backup is queried incrementaly on fail to decrypt.
Full import could still be done from the UI where we have a proper feedback.
I am unsure why it's locking every e2ee related actions. Maybe too many transactions on DB? I am not sure how web is doing things in background
Operating system
No response
Browser information
No response
URL for webapp
No response
Application version
No response
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: