diff options
author | George Hazan <george.hazan@gmail.com> | 2015-02-09 21:23:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-02-09 21:23:16 +0000 |
commit | 7e1c726175d39a6fa069d10fb0fdc88b0ec81b0b (patch) | |
tree | 9fa9017de02c5dbd8352ec2693c2a0a5948f18e4 /protocols/WhatsApp/src/chat.cpp | |
parent | 8e6d90e5ce900f627c1303c35ff42ae7f70e2e80 (diff) |
- fix for returning chats online after going offline
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/chat.cpp')
-rw-r--r-- | protocols/WhatsApp/src/chat.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp index 28c20c80e8..020773f37a 100644 --- a/protocols/WhatsApp/src/chat.cpp +++ b/protocols/WhatsApp/src/chat.cpp @@ -345,6 +345,11 @@ void WhatsAppProto::onGroupInfo(const std::string &jid, const std::string &owner pInfo = InitChat(jid, subject);
pInfo->bActive = true;
}
+ else {
+ GCDEST gcd = { m_szModuleName, pInfo->tszJid, GC_EVENT_CONTROL };
+ GCEVENT gce = { sizeof(gce), &gcd };
+ CallServiceSync(MS_GC_EVENT, SESSION_ONLINE, (LPARAM)&gce);
+ }
if (!subject.empty()) {
pInfo->tszOwner = str2t(owner);
|