Skip to content
Snippets Groups Projects
Commit 71a1285c authored by Jason Volk's avatar Jason Volk Committed by 🥺
Browse files

hoist receipt ACL check


Signed-off-by: default avatarJason Volk <jason@zemos.net>
parent abdda6cf
No related branches found
No related tags found
No related merge requests found
......@@ -352,22 +352,22 @@ pub(crate) async fn send_transaction_message_route(
}
for (room_id, room_updates) in receipt.receipts {
if services()
.rooms
.event_handler
.acl_check(origin, &room_id)
.is_err()
{
debug_warn!(%origin, %room_id, "received read receipt EDU from ACL'd server");
continue;
}
for (user_id, user_updates) in room_updates.read {
if user_id.server_name() != origin {
debug_warn!(%user_id, %origin, "received read receipt EDU for user not belonging to origin");
continue;
}
if services()
.rooms
.event_handler
.acl_check(user_id.server_name(), &room_id)
.is_err()
{
debug_warn!(%user_id, %room_id, "received read receipt EDU from ACL'd user's server");
continue;
}
if services().rooms.state_cache.is_joined(&user_id, &room_id)? {
if let Some((event_id, _)) = user_updates
.event_ids
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment