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

read receipts: don't update a RoomInfo if the read receipts haven't changed #2968

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Dec 21, 2023

This fixes a TODO from #2953, by returning a boolean indicating whether a change happened in the RoomReadReceipts and they do need in fact to be saved.

@bnjbvr bnjbvr requested a review from a team as a code owner December 21, 2023 16:28
@bnjbvr bnjbvr requested review from Hywan and removed request for a team December 21, 2023 16:28
@bnjbvr bnjbvr enabled auto-merge (rebase) December 21, 2023 16:30
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2a77aaa) 83.40% compared to head (38df4f4) 83.40%.

Files Patch % Lines
crates/matrix-sdk-base/src/read_receipts.rs 63.63% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2968   +/-   ##
=======================================
  Coverage   83.40%   83.40%           
=======================================
  Files         222      222           
  Lines       23144    23149    +5     
=======================================
+ Hits        19303    19308    +5     
  Misses       3841     3841           

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

@bnjbvr bnjbvr merged commit 75fe874 into main Dec 21, 2023
35 checks passed
@bnjbvr bnjbvr deleted the read-receipts-avoid-spurious-update branch December 21, 2023 16:41
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