Describe the bug
When the encryption key is missing for a message you can't re-request it in your other sessions or with other people in the same encrypted room. There is nothing happening on UI and in-code behavior is not clear.
To Reproduce
Steps to reproduce the behavior:
Login with the same user with two different devices;
Make sure the e2ee encryption is setup;
Create an encrypted room;
Send few messaged in this encrypted room, and verify you see the messages on both devices;
re-login on one of the devices and skip the verification steps.
Click on "Re-request encryption keys from your other sessions."
Instead of step 1, you can have two different users, and the behavior is almost the same, except that it's a bit more clear why it doesn't work. The failure is with the session key not found in src/crypto/algorithms/megolm.ts
Describe the bug When the encryption key is missing for a message you can't re-request it in your other sessions or with other people in the same encrypted room. There is nothing happening on UI and in-code behavior is not clear.
To Reproduce Steps to reproduce the behavior:
Instead of step 1, you can have two different users, and the behavior is almost the same, except that it's a bit more clear why it doesn't work. The failure is with the session key not found in
src/crypto/algorithms/megolm.ts
For the same user (different devices), The execution flow ends on
inside
src/crypto/index.ts
however, there is no listener for the
CryptoEvent.RoomKeyRequest
event nor any other log output (error/info, etc..).Expected behavior E2EE keys are shared or a verification flow is started, and message becomes visible on the device.
Screenshots Requesting keys
Logs on the other device (from which the user expects to request keys)
UI of the other device (from which the user expects to request keys)
Desktop (please complete the following information):
Additional context Tested with: