diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-22 15:56:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-22 15:56:53 +0300 |
commit | 1f46c15ee7098125e34f5bc53a13c284211ef645 (patch) | |
tree | 9bec46dfb88803f7506a5ad86622b3b748f24708 /protocols/SkypeWeb/src/requests | |
parent | f452e4b739789fa3bfad9402faad985aedbce5f5 (diff) |
SkypeWeb: more or less working group chats
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r-- | protocols/SkypeWeb/src/requests/chatrooms.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/requests/chatrooms.h b/protocols/SkypeWeb/src/requests/chatrooms.h index 921f6b2519..b8f6f48c82 100644 --- a/protocols/SkypeWeb/src/requests/chatrooms.h +++ b/protocols/SkypeWeb/src/requests/chatrooms.h @@ -33,7 +33,7 @@ struct SendChatMessageRequest : public AsyncHttpRequest SendChatMessageRequest(const char *to, time_t timestamp, const char *message) :
AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT)
{
- m_szUrl.AppendFormat("/users/ME/conversations/19:%s/messages", to);
+ m_szUrl.AppendFormat("/users/ME/conversations/%s/messages", to);
JSONNode node;
node << CHAR_PARAM("clientmessageid", CMStringA(::FORMAT, "%llu000", (ULONGLONG)timestamp))
@@ -47,7 +47,7 @@ struct SendChatActionRequest : public AsyncHttpRequest SendChatActionRequest(const char *to, time_t timestamp, const char *message) :
AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT)
{
- m_szUrl.AppendFormat("/users/ME/conversations/19:%s/messages", to);
+ m_szUrl.AppendFormat("/users/ME/conversations/%s/messages", to);
JSONNode node(JSON_NODE);
node << CHAR_PARAM("clientmessageid", CMStringA(::FORMAT, "%llu000", (ULONGLONG)timestamp))
@@ -78,11 +78,10 @@ struct CreateChatroomRequest : public AsyncHttpRequest struct GetChatInfoRequest : public AsyncHttpRequest
{
- GetChatInfoRequest(const char *chatId, const CMStringW &topic) :
+ GetChatInfoRequest(const wchar_t *chatId) :
AsyncHttpRequest(REQUEST_GET, HOST_DEFAULT, 0, &CSkypeProto::OnGetChatInfo)
{
- m_szUrl.AppendFormat("/threads/%s", chatId);
- pUserInfo = topic.Detach();
+ m_szUrl.AppendFormat("/threads/%S", chatId);
this << CHAR_PARAM("view", "msnp24Equivalent");
}
|