matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.2k stars 240 forks source link

crypto: Notify when the identity status of a user changes #4022

Open andybalaam opened 1 week ago

andybalaam commented 1 week ago

Part of https://github.com/element-hq/element-meta/issues/2526

If you follow the stream returned from matrix_sdk::room::Room::subscribe_to_identity_status_changes you will receive an update every time someone in the room changes identity status e.g. becomes "Unpinned", meaning the UI should display a warning.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 95.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.58%. Comparing base (9b7f89c) to head (8d3165a).

Files with missing lines Patch % Lines
...x-sdk-crypto/src/identities/room_identity_state.rs 90.90% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4022 +/- ## ========================================== + Coverage 84.50% 84.58% +0.07% ========================================== Files 266 268 +2 Lines 28475 28600 +125 ========================================== + Hits 24064 24191 +127 + Misses 4411 4409 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.