Skip to content

Commit 5c049d6

Browse files
committed
timeline: rename handle_joined_room_update to handle_sync_events
1 parent 057bca0 commit 5c049d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/matrix-sdk-ui/src/timeline/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl TimelineBuilder {
196196
// TODO: (bnjbvr) account_data and ephemeral should be handled by the
197197
// event cache, and we should replace this with a simple
198198
// `handle_add_events`.
199-
inner.handle_joined_room_update(events, account_data, ephemeral).await;
199+
inner.handle_sync_events(events, account_data, ephemeral).await;
200200

201201
let member_ambiguity_changes = ambiguity_changes
202202
.values()

crates/matrix-sdk-ui/src/timeline/inner/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,15 @@ impl<P: RoomDataProvider> TimelineInner<P> {
425425
self.state.write().await.clear();
426426
}
427427

428-
pub(super) async fn handle_joined_room_update(
428+
pub(super) async fn handle_sync_events(
429429
&self,
430430
events: Vec<SyncTimelineEvent>,
431431
account_data: Vec<Raw<AnyRoomAccountDataEvent>>,
432432
ephemeral: Vec<Raw<AnySyncEphemeralRoomEvent>>,
433433
) {
434434
let mut state = self.state.write().await;
435435
state
436-
.handle_joined_room_update(
436+
.handle_sync_events(
437437
events,
438438
account_data,
439439
ephemeral,

crates/matrix-sdk-ui/src/timeline/inner/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl TimelineInnerState {
115115
}
116116

117117
#[instrument(skip_all)]
118-
pub(super) async fn handle_joined_room_update<P: RoomDataProvider>(
118+
pub(super) async fn handle_sync_events<P: RoomDataProvider>(
119119
&mut self,
120120
events: Vec<SyncTimelineEvent>,
121121
account_data: Vec<Raw<AnyRoomAccountDataEvent>>,

0 commit comments

Comments
 (0)