mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-12 18:21:21 -04:00
task(ui): Support VectorDiff::PushFront in TimelineStateTransaction::handle_remote_events_with_diffs.
This patch updates `TimelineStateTransaction::handle_remote_events_with_diffs` to support `VectorDiff::PushFront`.
This commit is contained in:
@@ -463,6 +463,17 @@ impl TimelineStateTransaction<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
VectorDiff::PushFront { value: event } => {
|
||||
self.handle_remote_event(
|
||||
event,
|
||||
TimelineItemPosition::Start { origin },
|
||||
room_data_provider,
|
||||
settings,
|
||||
&mut day_divider_adjuster,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
v => unimplemented!("{v:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user