Unable to decrypt after verification until reload
Steps to reproduce
- Don't set up key backup.
- Have working session with all keys available.
- Have an encrypted room with some messages.
- Sign in to a second session.
- Open the room in the second session.
- „Unable to decrypt“ visible.
- Go to security settings and verify your device with the other session.
- Look at the room
Outcome
What did you expect?
Messages are now visible
What happened instead?
Still „Unable to decrypt“
Reloading the page gives a high chance for the messages to appear.
Operating system
Ubuntu 22.04.1 LTS
Browser information
Firefox 105.0 (64-bit)
URL for webapp
https://develop.element.io/
Application version
Version von Element: 287a73506c29-react-71cf9bf932cc-js-7e24cb6cae8c Version von Olm: 3.2.12
Homeserver
matrix.org
Will you send logs?
No
I believe this is a race condition: we appear to block decryption until after all the keys are received, so on large-ish backups this can take a while.
From a user perspective I would still say this is an S-Major. Because Element ends up in an unusable state for me = cannot read my messages.
Is there an actual reason to block the decryption until all the keys are received?
- if yes, we may ask for a design to let the user know about this, this would improve at least the user experience. Currently the user just believes the decryption is not working and triggers multiple new key requests
- if no, we should fix it to improve the end user experience
Reopening this one because we had to roll back the fix. It caused existing sessions to send all the keys around. That eventually leads to thousands of requests.
This sounds like #27009.