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

feat(sdk): Improve RoomEventCacheUpdate #3471

Merged
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/timeline/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl TimelineBuilder {
};

match update {
RoomEventCacheUpdate::ReadMarker { event_id } => {
RoomEventCacheUpdate::ReadMarker { move_to: event_id } => {
trace!(target = %event_id, "Handling fully read marker.");
inner.handle_fully_read_marker(event_id).await;
}
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk/src/event_cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ impl RoomEventCacheInner {
// Propagate to observers. (We ignore the error if there aren't any.)
let _ = self
.sender
.send(RoomEventCacheUpdate::ReadMarker { event_id: ev.content.event_id });
.send(RoomEventCacheUpdate::ReadMarker { move_to: ev.content.event_id });
}

Ok(_) => {
Expand Down Expand Up @@ -704,7 +704,7 @@ pub enum RoomEventCacheUpdate {
/// The fully read marker has moved to a different event.
ReadMarker {
Hywan marked this conversation as resolved.
Show resolved Hide resolved
/// Event at which the read marker is now pointing.
event_id: OwnedEventId,
move_to: OwnedEventId,
Hywan marked this conversation as resolved.
Show resolved Hide resolved
},

/// The room has new events.
Expand Down