diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-01 12:00:50 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-01 12:00:50 +0000 |
commit | 039db3b302a3f7a3e78f89e430c8cb83efb12b5e (patch) | |
tree | 27a05aa06be93ed06e6050805f6c4d6f8cb2046f /protocols/SkypeWeb/src/requests/chatrooms.h | |
parent | 4b2a0c3b6959c5691152af85b726b0f6a9398d3a (diff) |
SkypeWeb: clientmessageid = time in milliseconds (fix doubles in linux client)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/chatrooms.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/chatrooms.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/chatrooms.h b/protocols/SkypeWeb/src/requests/chatrooms.h index 767bfb1eb4..68855cb9bf 100644 --- a/protocols/SkypeWeb/src/requests/chatrooms.h +++ b/protocols/SkypeWeb/src/requests/chatrooms.h @@ -40,7 +40,7 @@ public: class SendChatMessageRequest : public HttpRequest
{
public:
- SendChatMessageRequest(const char *to, time_t timestamp, const char *message, LoginInfo &li) :
+ SendChatMessageRequest(const char *to, ULONGLONG timestamp, const char *message, LoginInfo &li) :
HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/conversations/19:%s/messages", li.endpoint.szServer, to)
{
Headers
@@ -61,7 +61,7 @@ public: class SendChatActionRequest : public HttpRequest
{
public:
- SendChatActionRequest(const char *to, time_t timestamp, const char *message, LoginInfo &li) :
+ SendChatActionRequest(const char *to, ULONGLONG timestamp, const char *message, LoginInfo &li) :
HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/conversations/19:%s/messages", li.endpoint.szServer, to)
{
Headers
@@ -71,7 +71,7 @@ public: JSONNode node(JSON_NODE);
node
- << JSONNode("clientmessageid", (long)timestamp)
+ << JSONNode("clientmessageid", CMStringA(::FORMAT, "%llu", (ULONGLONG)timestamp))
<< JSONNode("messagetype", "RichText")
<< JSONNode("contenttype", "text")
<< JSONNode("content", message)
|