fix broken reports
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
154b2ab490
commit
3504e6e724
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue