-
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
ffi: add RoomPinnedEventsChange
enum and a diffing step
#3801
Conversation
823e3e0
to
bbcf922
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3801 +/- ##
==========================================
+ Coverage 84.08% 84.09% +0.01%
==========================================
Files 262 263 +1
Lines 27456 27476 +20
==========================================
+ Hits 23087 23107 +20
Misses 4369 4369 ☔ 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.
One suggestion that you can consider optional. Thanks!
@@ -381,7 +394,49 @@ impl From<&matrix_sdk_ui::timeline::AnyOtherFullStateEventContent> for OtherStat | |||
}; | |||
Self::RoomName { name } | |||
} | |||
Content::RoomPinnedEvents(_) => Self::RoomPinnedEvents, | |||
Content::RoomPinnedEvents(c) => { |
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 is a massive chunk, which I'd prefer to have in a separate function, and unit tested, if possible.
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.
Yeah, that's probably a good idea. Thanks!
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.
…pened in the last pinning/unpinning events action
a9bdcd5
to
665c2c2
Compare
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.
Looks great, thank you! Just need to add a copyright notice to the new file.
@@ -0,0 +1,178 @@ | |||
use std::collections::HashSet; |
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.
Missing copyright.
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.
Oh, weird. I expected the IDE to automatically add it 🤔 .
665c2c2
to
cf28c8e
Compare
This is needed to give the clients some context of what happened in the last pinning/unpinning events action so they can display the right info in the timeline events.
Signed-off-by: