From 76e343ab968fb6f194333fb0ec7057eaf621bcd4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Jul 2015 13:19:35 +0000 Subject: 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 --- protocols/WhatsApp/src/proto.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/WhatsApp/src/proto.cpp') 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; } -- cgit v1.2.3