diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-10 15:28:20 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-10 15:28:20 +0300 |
commit | b58bd0a705dba9a32e4db1420e2d615c6ee6bd41 (patch) | |
tree | 5924c1355288a80575a7caf64849b1846ebec194 /protocols/SkypeWeb/src/skype_chatrooms.cpp | |
parent | 9d98fd2380b5e8bc66ab599e896cee5ad2ec7d58 (diff) |
fixes #4830 (SkypeWeb: редактированное своё сообщение приходит как новое)
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_chatrooms.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index df3ed5cbc9..5c80b67f3b 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -340,8 +340,8 @@ void CSkypeProto::SendChatMessage(SESSION_INFO *si, const wchar_t *tszMessage) AsyncHttpRequest *pReq = new AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT, szUrl, &CSkypeProto::OnMessageSent);
JSONNode node;
- node << CHAR_PARAM("clientmessageid", CMStringA(::FORMAT, "%llu000", (ULONGLONG)time(0)))
- << CHAR_PARAM("messagetype", bRich ? "RichText" : "Text") << CHAR_PARAM("contenttype", "text") << CHAR_PARAM("content", szMessage);
+ node << INT64_PARAM("clientmessageid", getRandomId()) << CHAR_PARAM("messagetype", bRich ? "RichText" : "Text")
+ << CHAR_PARAM("contenttype", "text") << CHAR_PARAM("content", szMessage);
if (strncmp(szMessage, "/me ", 4) == 0)
node << INT_PARAM("skypeemoteoffset", 4);
pReq->m_szParam = node.write().c_str();
|