mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Immediately trigger EDU sending after client read receipt
Previously, read receipts would only be forwarded via federation incidentally when some PDU was later sent to the destination server. Trigger a send without any event to collect EDUs and get read receipts out directly.
This commit is contained in:
parent
81c5f09919
commit
6bcc4e310e
3 changed files with 39 additions and 14 deletions
|
|
@ -95,6 +95,9 @@ pub(crate) async fn set_read_marker_route(
|
|||
room_id: body.room_id.clone(),
|
||||
},
|
||||
)?;
|
||||
for server in services().rooms.state_cache.room_servers(&body.room_id) {
|
||||
services().sending.trigger_edu_send(&server?)?;
|
||||
}
|
||||
}
|
||||
|
||||
Ok(Ra(set_read_marker::v3::Response {}))
|
||||
|
|
@ -159,6 +162,11 @@ pub(crate) async fn create_receipt_route(
|
|||
room_id: body.room_id.clone(),
|
||||
},
|
||||
)?;
|
||||
for server in
|
||||
services().rooms.state_cache.room_servers(&body.room_id)
|
||||
{
|
||||
services().sending.trigger_edu_send(&server?)?;
|
||||
}
|
||||
}
|
||||
create_receipt::v3::ReceiptType::ReadPrivate => {
|
||||
let count = services()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue