element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.87k stars 1.92k forks source link

Unable to decrypt message, keys aren't getting transferred from other devices #27623

Open TellowKrinkle opened 1 month ago

TellowKrinkle commented 1 month ago

Steps to reproduce

  1. Sign into your account on a new device
  2. Verify the session from an already signed in device
  3. Try to view encrypted messages on the new device
  4. According to https://joinmatrix.org/guide/fix-decryption-error/, if you view the same messages on a device that has the keys, they will be transferred to the new device in a "few moments"

Outcome

What did you expect?

The messages will be decrypted in less than a minute

What happened instead?

Still shows unable to decrypt message after multiple minutes

Operating system

Fedora Linux

Browser information

Firefox 127.0

URL for webapp

app.element.io

Application version

Element version 1.11.69, Crypto version Rust SDK 0.7.0 (068a0af), Vodozemac 0.6.0

Homeserver

matrix.org

Will you send logs?

Yes

kegsay commented 3 weeks ago

This is due to the other client (not the new one) not having the m.megolm_backup.v1 secret, but it has the other 3 (SSK, USK, MSK).

Confusingly, functions which get access to the backup key are producing different results: