summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-09-13 14:32:53 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-09-13 14:32:53 +0000
commitcf0be00671d56bb18118e1491e7c1f0e131e7b3d (patch)
tree407d1760615f4cf22a4e664f242ae045a4cf8408 /protocols/WhatsApp/src/proto.cpp
parent6f20ee4beb6b840ed81489358bca01ed41a0ea56 (diff)
Patch by Cassio:
Another patch, which fixes last seen timestamps/presence due to a change in WA protocol: There is no longer a last seen request/response as this info is now received within the presence response. git-svn-id: http://svn.miranda-ng.org/main/trunk@15345 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index a5384be1c6..0db6f3fa84 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -177,7 +177,6 @@ MCONTACT WhatsAppProto::AddToList(int flags, PROTOSEARCHRESULT *psr)
if (!(flags & PALF_TEMPORARY))
db_unset(hContact, "CList", "NotOnList");
- m_pConnection->sendQueryLastOnline(jid.c_str());
m_pConnection->sendPresenceSubscriptionRequest(jid.c_str());
return hContact;
}
@@ -320,7 +319,6 @@ int WhatsAppProto::OnUserInfo(WPARAM, LPARAM hContact)
{
ptrA jid(getStringA(hContact, WHATSAPP_KEY_ID));
if (jid && isOnline()) {
- m_pConnection->sendQueryLastOnline((char*)jid);
m_pConnection->sendGetPicture((char*)jid, "image");
m_pConnection->sendPresenceSubscriptionRequest((char*)jid);
}
@@ -335,7 +333,6 @@ void WhatsAppProto::RequestFriendship(MCONTACT hContact)
ptrA jid(getStringA(hContact, WHATSAPP_KEY_ID));
if (jid) {
- m_pConnection->sendQueryLastOnline((char*)jid);
m_pConnection->sendPresenceSubscriptionRequest((char*)jid);
}
}