element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
65 stars 11 forks source link

Unable to decrypt cause: new device, and there were no active devices to receive keys #2421

Open richvdh opened 1 month ago

richvdh commented 1 month ago

When a user logs in on a new device, they should be able to retrieve keys for existing encrypted messages from key backup.

However, this will not work if there were no active devices at the point that the keys for the message were sent. For example:

All of these problems should be solved by dehydrated devices (MSC3814).

richvdh commented 1 month ago

See also https://github.com/element-hq/element-web/issues/27267 which exacerbates this, though it's far from the main cause.

richvdh commented 1 month ago

A more specific example scenario for this: