1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-30 21:55:24 +00:00

Leave chat rooms before receiving self unavailable presence

Fixes bug for servers that don't send the self presence
This commit is contained in:
James Booth 2015-08-23 23:56:34 +01:00
parent b1ab4b2854
commit b8b54f91a5

View File

@ -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);