fix broken reports

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-09 09:40:56 -04:00 committed by June
parent 154b2ab490
commit 3504e6e724
1 changed files with 2 additions and 2 deletions

View File

@ -91,12 +91,12 @@ fn is_report_valid(
));
}
if services()
if !services()
.rooms
.state_cache
.room_members(&pdu.room_id)
.filter_map(Result::ok)
.any(|user_id| user_id != *sender_user)
.any(|user_id| user_id == *sender_user)
{
return Err(Error::BadRequest(
ErrorKind::NotFound,