mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Correct incorrectly inverted boolean expression
This commit is contained in:
@@ -36,9 +36,9 @@ async fn should_rescind_invite(
|
||||
.map_err(|e| err!("invalid PDU: {e}"))?;
|
||||
|
||||
if pdu_event.room_id().is_none_or(|r| r != room_id)
|
||||
|| pdu_event.sender() != sender
|
||||
|| pdu_event.event_type() != &TimelineEventType::RoomMember
|
||||
|| pdu_event.state_key().is_none_or(|v| v == sender.as_str())
|
||||
&& pdu_event.sender() != sender
|
||||
&& pdu_event.event_type() != &TimelineEventType::RoomMember
|
||||
&& pdu_event.state_key().is_none_or(|v| v == sender.as_str())
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user