diff options
author | George Hazan <george.hazan@gmail.com> | 2015-02-10 21:31:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-02-10 21:31:29 +0000 |
commit | 85f31b137eb97138e81a185185882d445903f84d (patch) | |
tree | 695227cb1b51abef21ba41304193bd3dbf1af0e1 /protocols/WhatsApp/src/chat.cpp | |
parent | e3506fe66886912cee16a91793d17010a87eecef (diff) |
sender's time ignored to prevent message reordering
git-svn-id: http://svn.miranda-ng.org/main/trunk@12086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/chat.cpp')
-rw-r--r-- | protocols/WhatsApp/src/chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp index 020773f37a..c3c4fbb0f4 100644 --- a/protocols/WhatsApp/src/chat.cpp +++ b/protocols/WhatsApp/src/chat.cpp @@ -389,7 +389,7 @@ void WhatsAppProto::onGroupMessage(const FMessage &pMsg) gce.dwFlags = GCEF_ADDTOLOG;
gce.ptszUID = tszUID;
gce.ptszNick = tszNick;
- gce.time = pMsg.timestamp;
+ gce.time = time(NULL);
gce.ptszText = tszText;
gce.bIsMe = m_szJid == pMsg.remote_resource;
CallServiceSync(MS_GC_EVENT, NULL, (LPARAM)&gce);
@@ -532,7 +532,7 @@ void WhatsAppProto::onGroupMessageReceived(const FMessage &msg) gce.dwFlags = GCEF_ADDTOLOG;
gce.ptszUID = tszUID;
gce.ptszNick = tszNick;
- gce.time = msg.timestamp;
+ gce.time = time(NULL);
gce.ptszText = p->second.c_str();
gce.bIsMe = m_szJid == msg.remote_resource;
CallServiceSync(MS_GC_EVENT, NULL, (LPARAM)&gce);
|