diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/WhatsApp/src/message.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/message.cpp b/protocols/WhatsApp/src/message.cpp index e82cef0334..df272eb0b0 100644 --- a/protocols/WhatsApp/src/message.cpp +++ b/protocols/WhatsApp/src/message.cpp @@ -366,6 +366,8 @@ int WhatsAppProto::SendTextMessage(const char *jid, const char *pszMsg) char szMsgId[40]; __int64 msgId; Utils_GetRandom(&msgId, sizeof(msgId)); + if (msgId < 0) + msgId = -msgId; _i64toa(msgId, szMsgId, 10); // mother node for all participants |