summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-20 13:01:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-20 13:01:50 +0000
commit6a55dfd05ba870b86f5a0a17fd72763412197719 (patch)
treef4f3bdaf24691b36b4f7c8135e953a6b17d749a1 /protocols/WhatsApp
parent4745612e6ab5b97e20f9a6fd94a3fcf4e76af0d5 (diff)
server timestamp returned back for chat messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@12219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r--protocols/WhatsApp/src/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp
index 2bd10dc74f..a2f592afe2 100644
--- a/protocols/WhatsApp/src/chat.cpp
+++ b/protocols/WhatsApp/src/chat.cpp
@@ -416,7 +416,7 @@ void WhatsAppProto::onGroupMessage(const FMessage &pMsg)
gce.dwFlags = GCEF_ADDTOLOG;
gce.ptszUID = tszUID;
gce.ptszNick = tszNick;
- gce.time = time(NULL);
+ gce.time = pMsg.timestamp;
gce.ptszText = tszText;
gce.bIsMe = m_szJid == pMsg.remote_resource;
CallServiceSync(MS_GC_EVENT, NULL, (LPARAM)&gce);