diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-25 18:34:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-25 18:34:51 +0300 |
commit | 9885bf54f788e831a80c76001340aa68d31d2aaa (patch) | |
tree | 420ab4aa5bf868d4193c965668ae68e5855093b7 /protocols/VKontakte/src/vk_files.cpp | |
parent | c9d99d1525e2e9374ed0fa10837e82e76c3b9216 (diff) |
Group chats: ChatRoomID setting replaced with real protocol id
Diffstat (limited to 'protocols/VKontakte/src/vk_files.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index a7306c1568..7ac1b9657e 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -363,14 +363,7 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR AsyncHttpRequest *pMsgReq;
if (isChatRoom(fup->hContact)) {
-
- ptrW wszChatID(getWStringA(fup->hContact, "ChatRoomID"));
- if (!wszChatID) {
- SendFileFiled(fup, VKERR_INVALID_USER);
- return;
- }
-
- CVkChatInfo *cc = GetChatById(wszChatID);
+ CVkChatInfo *cc = GetChatByContact(fup->hContact);
if (cc == nullptr) {
SendFileFiled(fup, VKERR_INVALID_USER);
return;
|