diff --git a/src/api/client_server/report.rs b/src/api/client_server/report.rs index 185d7edb..3e6ba880 100644 --- a/src/api/client_server/report.rs +++ b/src/api/client_server/report.rs @@ -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,