diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-25 13:19:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-25 13:19:35 +0000 |
commit | 76e343ab968fb6f194333fb0ec7057eaf621bcd4 (patch) | |
tree | d26a6621db55ef37a33347b157dd228474a9089e /protocols/WhatsApp/src/proto.cpp | |
parent | dae9bc184b44c2b0c70b7996f202d6a7fa2dd4a4 (diff) |
an option added to use the remote timestamps for messages (patch by Cassio is well received)
git-svn-id: http://svn.miranda-ng.org/main/trunk@14684 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index cfdea03d58..9f7099ba98 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -319,9 +319,12 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number, int WhatsAppProto::OnUserInfo(WPARAM, LPARAM hContact)
{
ptrA jid(getStringA(hContact, WHATSAPP_KEY_ID));
- if (jid && isOnline())
+ if (jid && isOnline()) {
m_pConnection->sendQueryLastOnline((char*)jid);
-
+ m_pConnection->sendGetPicture((char*)jid, "image");
+ m_pConnection->sendPresenceSubscriptionRequest((char*)jid);
+ }
+
return 0;
}
|