diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-25 13:19:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-25 13:19:35 +0000 |
commit | 76e343ab968fb6f194333fb0ec7057eaf621bcd4 (patch) | |
tree | d26a6621db55ef37a33347b157dd228474a9089e /protocols/WhatsApp/src/messages.cpp | |
parent | dae9bc184b44c2b0c70b7996f202d6a7fa2dd4a4 (diff) |
an option added to use the remote timestamps for messages (patch by Cassio is well received)
git-svn-id: http://svn.miranda-ng.org/main/trunk@14684 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/messages.cpp')
-rw-r--r-- | protocols/WhatsApp/src/messages.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/messages.cpp b/protocols/WhatsApp/src/messages.cpp index 452215b90a..837b13ef01 100644 --- a/protocols/WhatsApp/src/messages.cpp +++ b/protocols/WhatsApp/src/messages.cpp @@ -31,7 +31,11 @@ void WhatsAppProto::onMessageForMe(const FMessage &pMsg) PROTORECVEVENT recv = { 0 };
recv.szMessage = const_cast<char*>(msg.c_str());
- recv.timestamp = time(NULL);
+ if (getByte(WHATSAPP_KEY_USE_REMOTE_TIME, 0))
+ recv.timestamp = pMsg.timestamp;
+ else
+ recv.timestamp = time(NULL);
+
ProtoChainRecvMsg(hContact, &recv);
}
|