about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index be1afd03..2cb133b6 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -414,13 +414,6 @@ ui_handle_error_message(const char * const from, const char * const err_msg)
         } else {
             cons_show_error("Error received from server: %s", err_msg);
         }
-        // remove the room from muc
-        Jid *room_jid = jid_create(from);
-        if (!muc_get_roster_received(room_jid->barejid)) {
-            muc_leave_room(room_jid->barejid);
-        }
-        jid_destroy(room_jid);
-
     } else {
         cons_show_error("Error received from server: %s", err_msg);
     }