From b9a3a98d6f2695a36ca27fa2d88e99fedd72cc98 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Mar 2017 21:46:59 +0300 Subject: Group chats: - GC_CONTROL_MSG left us forever; - tons of old/unused/useless slack simply wiped out; - new function: CSrmmBaseDialog::ClearLog --- protocols/VKontakte/src/vk_chats.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_chats.cpp') diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 975bcd9fdc..4cac5fb957 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -613,7 +613,10 @@ void CVkProto::LeaveChat(int chat_id, bool close_window, bool delete_chat) if (cc == NULL) return; - Chat_Control(m_szModuleName, cc->m_wszId, close_window ? SESSION_TERMINATE : SESSION_OFFLINE); + if (close_window) + Chat_Terminate(m_szModuleName, cc->m_wszId); + else + Chat_Control(m_szModuleName, cc->m_wszId, SESSION_OFFLINE); if (delete_chat) db_delete_contact(cc->m_hContact); -- cgit v1.2.3