From ab2822be3ef31e2598d2607c3ecc95b3dc849679 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 16 Apr 2020 21:39:52 +0200 Subject: [PATCH] muc: also set myRoomJid to null if we have left the room --- .../src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java | 1 + 1 file changed, 1 insertion(+) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java index 3d87c9644..8dc709558 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java @@ -2120,6 +2120,7 @@ public class MultiUserChat { // presence. occupantsMap.clear(); joined = false; + myRoomJid = null; // Update the list of joined rooms multiUserChatManager.removeJoinedRoom(room); removeConnectionCallbacks();