From 6a55dfd05ba870b86f5a0a17fd72763412197719 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Feb 2015 13:01:50 +0000 Subject: server timestamp returned back for chat messages git-svn-id: http://svn.miranda-ng.org/main/trunk@12219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') 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); -- cgit v1.2.3