Skip to content
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

refactor(sdk): Rename RoomEvents::filter_duplicated_events #4481

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Jan 8, 2025

This patch renames RoomEvents::filter_duplicated_events to collect_valid_and_duplicated_events as I believe it improves the understanding of the code. The variables named unique_events are renamed events as all (valid) events are returned, not only the unique ones.


This patch renames `RoomEvents::filter_duplicated_events` to
`collect_valid_and_duplicated_events` as I believe it improves the
understanding of the code. The variables named `unique_events` are
renamed `events` as all (valid) events are returned, not only the unique
ones.
@Hywan Hywan requested a review from a team as a code owner January 8, 2025 10:33
@Hywan Hywan requested review from andybalaam and removed request for a team January 8, 2025 10:33
@Hywan Hywan changed the title refactor(sdk): Rename RoomEvents::filter_duplicated_events. refactor(sdk): Rename RoomEvents::filter_duplicated_events Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 85.10%. Comparing base (3f977b7) to head (6c40b9c).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/event_cache/room/events.rs 81.25% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4481      +/-   ##
==========================================
- Coverage   85.12%   85.10%   -0.03%     
==========================================
  Files         283      283              
  Lines       31768    31768              
==========================================
- Hits        27043    27036       -7     
- Misses       4725     4732       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@Hywan Hywan merged commit d649606 into matrix-org:main Jan 8, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants