diff options
author | James Booth <boothj5@gmail.com> | 2015-08-23 23:56:34 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-23 23:56:34 +0100 |
commit | b8b54f91a5fdcb44476b3d356bf143c9a10214ee (patch) | |
tree | f2f0f810f7c5cafda4da59bead8ccf9070b1ffe9 /src/ui | |
parent | b1ab4b28545de482106315722c47e0fb741a275e (diff) | |
download | profani-tty-b8b54f91a5fdcb44476b3d356bf143c9a10214ee.tar.gz |
Leave chat rooms before receiving self unavailable presence
Fixes bug for servers that don't send the self presence
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 890d5d1d..f947577b 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -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); |