feat: Return SENDER_IGNORED error in is_ignored_pdu

This commit is contained in:
timedout authored and Jade Ellis committed 2026-02-15 15:55:32 +00:00
1 parent 60a3abe752
commit 8bc6e6ccca
2 files changed
+22 -9

No files matched your search

+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.")));
}