Only trigger sender for local user's receipts.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-02-18 00:57:39 +00:00
parent fc23cc1568
commit ef399c1d10

View File

@@ -51,12 +51,14 @@ impl Service {
.readreceipt_update(user_id, room_id, event) .readreceipt_update(user_id, room_id, event)
.await; .await;
if self.services.globals.user_is_local(user_id) {
self.services self.services
.sending .sending
.flush_room(room_id) .flush_room(room_id)
.await .await
.expect("room flush failed"); .expect("room flush failed");
} }
}
/// Gets the latest private read receipt from the user in the room /// Gets the latest private read receipt from the user in the room
#[tracing::instrument(skip(self), level = "debug", name = "get_private")] #[tracing::instrument(skip(self), level = "debug", name = "get_private")]