config option to allow incoming remote read receipts

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-17 12:16:04 -04:00 committed by June
parent b78d79a45a
commit a7966b8f05
4 changed files with 17 additions and 1 deletions

View file

@ -823,6 +823,10 @@ pub async fn send_transaction_message_route(
}
},
Edu::Receipt(receipt) => {
if !services().globals.allow_incoming_read_receipts() {
continue;
}
for (room_id, room_updates) in receipt.receipts {
for (user_id, user_updates) in room_updates.read {
if let Some((event_id, _)) = user_updates