-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeline: use the previous content's membership info when it's missing from the current membership event #3648
timeline: use the previous content's membership info when it's missing from the current membership event #3648
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3648 +/- ##
=======================================
Coverage 84.25% 84.26%
=======================================
Files 259 259
Lines 26609 26621 +12
=======================================
+ Hits 22420 22431 +11
- Misses 4189 4190 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Thanks for the clean up too.
I like the fact we have less logics in FFI.
@@ -201,6 +201,48 @@ async fn test_room_member() { | |||
assert_matches!(profile.displayname_change(), Some(_)); | |||
assert_matches!(profile.avatar_url_change(), None); | |||
|
|||
let mut fourth_room_member_content = RoomMemberEventContent::new(MembershipState::Join); | |||
fourth_room_member_content.displayname = Some("Alice In Wonderland".to_owned()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐰
This requires adding an exception client-side (at least for EX Android) but I confirm it works as expected. Thanks! |
Thanks for testing! will land the first part, and see how we can improve the disambiguation mappings. |
…g from the current membership event Synapse returns a bare `{ "membership": "leave" }` as the content of a room membership event (for leave membership changes and likely others). In this case, it'd still be nice to have some kind of display name/avatar URL to show in UIs; it's possible to reuse information from the previous member event, if available.
b5e8cf2
to
61be6e8
Compare
Synapse returns a bare
{ "membership": "leave" }
as the content of a room membership event (for leave membership changes and likely others). In this case, it'd still be nice to have some kind of display name/avatar URL to show in UIs; it's possible to reuse information from the previous member event, if available.