diff options
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);
}
|