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

ffi: Timeline::load_reply_details checks if the event exists locally #3656

Merged

Conversation

jmartinesp
Copy link
Contributor

@jmartinesp jmartinesp commented Jul 4, 2024

Before it would go fetch the event from the server using a network request.

Fixes #3589

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@jmartinesp jmartinesp force-pushed the jme/ffi-load-reply-details-should-check-the-timeline-first branch from 997d028 to 757190c Compare July 4, 2024 13:29
@jmartinesp jmartinesp marked this pull request as ready for review July 4, 2024 13:29
@jmartinesp jmartinesp requested a review from a team as a code owner July 4, 2024 13:29
@jmartinesp jmartinesp requested review from bnjbvr and removed request for a team July 4, 2024 13:29
@jmartinesp jmartinesp force-pushed the jme/ffi-load-reply-details-should-check-the-timeline-first branch 2 times, most recently from af423c9 to fc1ad35 Compare July 4, 2024 13:48
Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Comment on lines 646 to 647
let ret = self.inner.room().event(&event_id).await;
match ret {
Copy link
Member

Choose a reason for hiding this comment

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

nit: can we get rid of the ret temporary variable please?

Before it would go fetch the event from the server using a network request.
@jmartinesp jmartinesp force-pushed the jme/ffi-load-reply-details-should-check-the-timeline-first branch from fc1ad35 to 5217a74 Compare July 4, 2024 13:58
@bnjbvr bnjbvr enabled auto-merge (rebase) July 4, 2024 13:58
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.22%. Comparing base (03d4a30) to head (5217a74).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3656      +/-   ##
==========================================
- Coverage   84.25%   84.22%   -0.04%     
==========================================
  Files         259      259              
  Lines       26595    26595              
==========================================
- Hits        22408    22400       -8     
- Misses       4187     4195       +8     

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

@bnjbvr bnjbvr merged commit 07b6425 into main Jul 4, 2024
40 checks passed
@bnjbvr bnjbvr deleted the jme/ffi-load-reply-details-should-check-the-timeline-first branch July 4, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants