element-hq / element-web

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

Element-R: withheld messages are no longer shown as such #27653

Closed richvdh closed 1 month ago

richvdh commented 2 months ago

If the sender chooses to only send e2e messages to verified devices, then unverified devices will receive a notification of a withheld key. (Specifically, a to-device message of type m.room_key.withheld with a code of m.unverified or m.blacklisted.)

We should reflect these notifications in the UI, rather than just showing a generic "Unable to decrypt message" error. (This used to work with legacy crypto, but has not been re-implemented for Rust Crypto).

We should also give them a different error code in the Posthog analytics, so that they can be treated as "expected UTDs".

andybalaam commented 2 months ago

Added to top of backlog because:

richvdh commented 1 month ago

https://github.com/matrix-org/matrix-js-sdk/pull/4310 is the final part of this