fix: Correctly remove extremities after creating a new event

This commit is contained in:
timedout committed 2026-10-30 00:51:51 +00:00
1 parent bc15b7b668
commit b04ffd7e6a
3 files changed
+4

No files matched your search

+2
View File
@@ -458,6 +458,7 @@ async fn knock_room_helper_local(
.await?;
info!("Appending room knock event locally");
services.rooms.timeline.progress_extremities(&parsed_knock_pdu).await?;
services
.rooms
.timeline
@@ -654,6 +655,7 @@ async fn knock_room_helper_remote(
.await?;
info!("Appending room knock event locally");
services.rooms.timeline.progress_extremities(&parsed_knock_pdu).await?;
services
.rooms
.timeline
+1
View File
@@ -668,6 +668,7 @@ impl Service {
// We append to state before appending the pdu, so we don't have a
// moment in time with the pdu without it's state. This is okay
// because append_pdu can't fail.
self.services.timeline.progress_extremities(&parsed_join_pdu).await?;
let statehash_after_join = self
.services
.state
+1
View File
@@ -111,6 +111,7 @@ impl super::Service {
// because append_pdu can't fail.
trace!("Appending {} state for room {room_id}", pdu.event_id());
let statehashid = self.services.state.append_to_state(&pdu, &room_id).await?;
self.progress_extremities(&pdu).await?;
trace!("State hash ID for {room_id}: {statehashid:?}");
trace!("Generating raw ID for PDU {}", pdu.event_id());