Skip to content

Commit 755034e

Browse files
committed
!feedback
1 parent 9328982 commit 755034e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ impl RoomEventCacheInner {
517517
Ok(())
518518
}
519519

520-
// Remove existing events, and append a set of events to the room cache and
521-
// storage, notifying observers.
520+
/// Remove existing events, and append a set of events to the room cache and
521+
/// storage, notifying observers.
522522
async fn replace_all_events_by(
523523
&self,
524524
events: Vec<SyncTimelineEvent>,

crates/matrix-sdk/src/event_cache/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl RoomEvents {
6565
self.push_events(once(event))
6666
}
6767

68-
/// Push events after existing events.
68+
/// Push events after all events or gaps.
6969
///
7070
/// The last event in `events` is the most recent one.
7171
pub fn push_events<I>(&mut self, events: I)
@@ -76,7 +76,7 @@ impl RoomEvents {
7676
self.chunks.push_items_back(events)
7777
}
7878

79-
/// Push a gap after existing events.
79+
/// Push a gap after all events or gaps.
8080
pub fn push_gap(&mut self, gap: Gap) {
8181
self.chunks.push_gap_back(gap)
8282
}

0 commit comments

Comments
 (0)