fix broken reports
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
154b2ab490
commit
3504e6e724
|
@ -91,12 +91,12 @@ fn is_report_valid(
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if services()
|
if !services()
|
||||||
.rooms
|
.rooms
|
||||||
.state_cache
|
.state_cache
|
||||||
.room_members(&pdu.room_id)
|
.room_members(&pdu.room_id)
|
||||||
.filter_map(Result::ok)
|
.filter_map(Result::ok)
|
||||||
.any(|user_id| user_id != *sender_user)
|
.any(|user_id| user_id == *sender_user)
|
||||||
{
|
{
|
||||||
return Err(Error::BadRequest(
|
return Err(Error::BadRequest(
|
||||||
ErrorKind::NotFound,
|
ErrorKind::NotFound,
|
||||||
|
|
Loading…
Reference in New Issue