summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-08-19 14:58:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-08-19 14:58:07 +0300
commit7b9f4e2adf4fda8d81cc6c92a4299186455967bd (patch)
tree269ad05aacfecfcd5f969543e9b91e557fa36396 /protocols/SkypeWeb/src/requests
parent70452ae985e7109b1eb9a66e39c039dacf0e2ecd (diff)
fixes #4575 (Skypeweb: Для каких-то контактов не отображаются ники)
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/chatrooms.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/requests/chatrooms.h b/protocols/SkypeWeb/src/requests/chatrooms.h
index a023a6bbe5..4e12b0c331 100644
--- a/protocols/SkypeWeb/src/requests/chatrooms.h
+++ b/protocols/SkypeWeb/src/requests/chatrooms.h
@@ -75,6 +75,21 @@ struct DestroyChatroomRequest : public AsyncHttpRequest
}
};
+struct GetChatMembersRequest : public AsyncHttpRequest
+{
+ GetChatMembersRequest(const LIST<char> &ids, SESSION_INFO *si) :
+ AsyncHttpRequest(REQUEST_POST, HOST_PEOPLE, "/profiles", &CSkypeProto::OnGetChatMembers)
+ {
+ JSONNode node, mris(JSON_ARRAY); mris.set_name("mris");
+ for (auto &it : ids)
+ mris.push_back(JSONNode("", it));
+ node << mris << CHAR_PARAM("locale", "en-US");
+ m_szParam = node.write().c_str();
+
+ pUserInfo = si;
+ }
+};
+
struct GetChatInfoRequest : public AsyncHttpRequest
{
GetChatInfoRequest(const wchar_t *chatId) :