From 24c5c5da5e34c0cfb1f6798afb3029f85d5dd062 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Jan 2015 23:35:02 +0000 Subject: WhatsApp: fix for send/recv messages git-svn-id: http://svn.miranda-ng.org/main/trunk@11922 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/WhatsApp/src/messages.cpp') diff --git a/protocols/WhatsApp/src/messages.cpp b/protocols/WhatsApp/src/messages.cpp index 8d774a47d0..af077934d0 100644 --- a/protocols/WhatsApp/src/messages.cpp +++ b/protocols/WhatsApp/src/messages.cpp @@ -54,7 +54,7 @@ int WhatsAppProto::SendMsg(MCONTACT hContact, int flags, const char *msg) return 0; } - int msgId = this->m_pConnection->msg_id++; + int msgId = ++this->m_pConnection->msg_id; try { time_t now = time(NULL); std::string id = Utilities::intToStr(now) + "-" + Utilities::intToStr(msgId); -- cgit v1.2.3