Skip to content

Commit bb3825e

Browse files
committed
fixup! refactor(event cache): consolidate logic around returning the previous gap token
1 parent 99b63b7 commit bb3825e

File tree

1 file changed

+1
-3
lines changed
  • crates/matrix-sdk/src/event_cache/room

1 file changed

+1
-3
lines changed

crates/matrix-sdk/src/event_cache/room/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,7 @@ mod private {
863863
// If any in-memory chunk is a gap, don't load more events, and let the caller
864864
// resolve the gap.
865865
if let Some(prev_token) = self.events.rgap().map(|gap| gap.prev_token) {
866-
return Ok(LoadMoreEventsBackwardsOutcome::Gap {
867-
prev_token: Some(prev_token.clone()),
868-
});
866+
return Ok(LoadMoreEventsBackwardsOutcome::Gap { prev_token: Some(prev_token) });
869867
}
870868

871869
// Because `first_chunk` is `not `Send`, get this information before the

0 commit comments

Comments
 (0)