From eccbb5307a048e70ac4adb0d3fd333be28245fa8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:21:33 +0300 Subject: massive cleanup of useless cbSize fields --- protocols/VKontakte/src/vk_chats.cpp | 10 ---------- 1 file changed, 10 deletions(-) (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 484602e265..725e48d25f 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -842,9 +842,7 @@ void CVkProto::ChatContactTypingThread(void *p) m_ChatsTyping.insert(param); StatusTextData st = { 0 }; - st.cbSize = sizeof(st); mir_snwprintf(st.tszText, TranslateT("%s is typing a message..."), cu->m_wszNick); - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)&st); } @@ -874,18 +872,10 @@ void CVkProto::StopChatContactTyping(int iChatId, int iUserId) m_ChatsTyping.remove(cp); StatusTextData st = { 0 }; - st.cbSize = sizeof(st); mir_snwprintf(st.tszText, L" "); - - // CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, NULL) clears statusbar very slowly. - // (1-10 sec(!!!) for me on tabSRMM O_o) - // So I call MS_MSG_SETSTATUSTEXT with st.wszText = " " for cleaning of "... is typing a message..." string. - // It works instantly! - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)&st); // After that I call standard cleaning procedure: - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact); } } -- cgit v1.2.3