Leave chat rooms before receiving self unavailable presence
Fixes bug for servers that don't send the self presence
This commit is contained in:
@@ -707,6 +707,8 @@ ui_close_connected_win(int index)
|
||||
ProfMucWin *mucwin = (ProfMucWin*) window;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
presence_leave_chat_room(mucwin->roomjid);
|
||||
muc_leave(mucwin->roomjid);
|
||||
ui_leave_room(mucwin->roomjid);
|
||||
} else if (window->type == WIN_CHAT) {
|
||||
ProfChatWin *chatwin = (ProfChatWin*) window;
|
||||
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
||||
|
||||
Reference in New Issue
Block a user