fix: Correct incorrectly inverted boolean expression
This commit is contained in:
parent
cb846a3ad1
commit
117c581948
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue