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,11 +51,13 @@ impl Service {
.readreceipt_update(user_id, room_id, event)
.await;
self.services
.sending
.flush_room(room_id)
.await
.expect("room flush failed");
if self.services.globals.user_is_local(user_id) {
self.services
.sending
.flush_room(room_id)
.await
.expect("room flush failed");
}
}
/// Gets the latest private read receipt from the user in the room