matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.26k stars 252 forks source link

UI is not updated when we receive message keys via the NotificationClient #4033

Open richvdh opened 1 month ago

richvdh commented 1 month ago

Suppose a message arrives before its decryption keys. It is initially shown as "Waiting for this message".

If the key is then received by the NotificationClient, rather than the main client, it looks like we do not update the UI to show a successful decryption.

(Closing and reopening the client fixes the problem.)

Rageshake: https://github.com/element-hq/element-x-android-rageshakes/issues/2885

richvdh commented 1 month ago

@poljar hypothesised:

It might do with the fact that we don't use the OlmMachine stream to listen to newly arrived room keys, instead we listen for m.room.key events on the Client and if we receive that event on the notification client we miss that?