feat: Return SENDER_IGNORED error in is_ignored_pdu

This commit is contained in:
timedout
2026-01-22 13:47:39 +00:00
committed by Jade Ellis
parent 60a3abe752
commit 8bc6e6ccca
2 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ pub(crate) async fn get_room_event_route(
let (mut event, visible) = try_join(event, visible).await?;
if !visible || is_ignored_pdu(services, &event, body.sender_user()).await {
if !visible || is_ignored_pdu(services, &event, body.sender_user()).await? {
return Err!(Request(Forbidden("You don't have permission to view this event.")));
}