diff --git a/xmpp/src/muc/room.rs b/xmpp/src/muc/room.rs index 493dfe7fd1226bdd500ac61a5a86012e27816127..2d50b24a7aa5662113ca7c898c8d7262ddbab7e8 100644 --- a/xmpp/src/muc/room.rs +++ b/xmpp/src/muc/room.rs @@ -64,7 +64,7 @@ pub async fn join_room<'a>(agent: &mut Agent, settings: JoinRoomSettings<'a>) { return; } - if !agent.rooms_joined.contains_key(&room) { + if agent.rooms_joined.contains_key(&room) { // We are already joined, cannot join warn!("Requesting to join room {room} which is already joined..."); return;