summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-26 20:54:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-26 20:54:25 +0000
commit0acc48076d8b2148d60d8a2532753c1eb06de276 (patch)
treeabbc11dba7e92f98d1fc66d9537e91e8f28b1e84 /protocols/WhatsApp/src/proto.cpp
parentde6c7df3c362fa0104e7d908c29614266caaa9d6 (diff)
fix for sending messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@11919 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 10b933b955..bf54fa6e5f 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -16,9 +16,7 @@ WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) :
PROTO<WhatsAppProto>(proto_name, username)
{
this->challenge = new std::vector < unsigned char > ;
- this->msgId = 0;
- this->msgIdHeader = time(NULL);
-
+
update_loop_lock_ = CreateEvent(NULL, false, false, NULL);
FMessage::generating_lock = new Mutex();
@@ -211,7 +209,7 @@ HANDLE WhatsAppProto::SearchBasic(const PROTOCHAR* id)
return 0;
// fake - we always accept search
- SearchParam *param = new SearchParam(id, GetSerial());
+ SearchParam *param = new SearchParam(id, m_pConnection->msg_id++);
ForkThread(&WhatsAppProto::SearchAckThread, param);
return (HANDLE)param->id;
}