Only trigger sender for local user's receipts.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -51,11 +51,13 @@ impl Service {
|
|||||||
.readreceipt_update(user_id, room_id, event)
|
.readreceipt_update(user_id, room_id, event)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
self.services
|
if self.services.globals.user_is_local(user_id) {
|
||||||
.sending
|
self.services
|
||||||
.flush_room(room_id)
|
.sending
|
||||||
.await
|
.flush_room(room_id)
|
||||||
.expect("room flush failed");
|
.await
|
||||||
|
.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
|
||||||
|
|||||||
Reference in New Issue
Block a user