From 4346e4b9403be999cbb4ae04f32657dcd3c3950e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 20 Apr 2025 12:10:52 +0200 Subject: [PATCH] xmpp::muc::room: reverse check for rooms_joined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit skip-changelog, fixes bug introduced in the same release Signed-off-by: Maxime “pep” Buquet --- xmpp/src/muc/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;