mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2026-02-07 03:24:38 -05:00
fix broken reports
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e4e1636da8
commit
5ec7e9fbaf
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
Add a link
Reference in a new issue