mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 21:16:22 +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:
@@ -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