summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-19 11:25:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-19 11:25:57 +0000
commit8fbb710f69be547c9a1fb45346bbd01db9d23bee (patch)
treeb49bf9e58c0aa7fdfd49bce0170062454bee4d9e /protocols/WhatsApp/src
parentf76565d65450fe2f60913b93938c9a770e8caf4b (diff)
Chat_AddGroup - even less structures
git-svn-id: http://svn.miranda-ng.org/main/trunk@17316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src')
-rw-r--r--protocols/WhatsApp/src/chat.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp
index 0987c6ea52..07de0eca79 100644
--- a/protocols/WhatsApp/src/chat.cpp
+++ b/protocols/WhatsApp/src/chat.cpp
@@ -311,12 +311,8 @@ WAChatInfo* WhatsAppProto::InitChat(const std::string &jid, const std::string &n
pInfo->hContact = (hOldContact != NULL) ? hOldContact : ContactIDToHContact(jid);
- GCDEST gcd = { m_szModuleName, ptszJid, GC_EVENT_ADDGROUP };
- GCEVENT gce = { &gcd };
- for (int i = _countof(sttStatuses) - 1; i >= 0; i--) {
- gce.ptszStatus = TranslateW(sttStatuses[i]);
- Chat_Event(&gce);
- }
+ for (int i = _countof(sttStatuses) - 1; i >= 0; i--)
+ Chat_AddGroup(m_szModuleName, ptszJid, TranslateW(sttStatuses[i]));
Chat_Control(m_szModuleName, ptszJid, getBool(WHATSAPP_KEY_AUTORUNCHATS, true) ? SESSION_INITDONE : WINDOW_HIDDEN);
Chat_Control(m_szModuleName, ptszJid, SESSION_ONLINE);