summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-26 15:26:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-26 15:26:46 +0300
commit53452cdfd0f64b78eb91d80f2a266ecdcc4953c0 (patch)
tree5de6cf2c5af039f4e2cc64ee01bfed99647ec399 /protocols/VKontakte
parentdcc996f1eee938ef6acf6895708f519951c84933 (diff)
code simplification + cleaning
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/misc.cpp2
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 6cd5957735..73ae348edc 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1467,7 +1467,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
if (bSuccess) {
res.AppendFormat(L"[sticker-%d]", iStickerId);
- SMADD_CONT cont = { 1, m_szModuleName, wszFileName };
+ SMADD_CONT cont = { SMADD_FILE, m_szModuleName, wszFileName };
CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont));
}
else res += SetBBCString(TranslateT("Sticker"), iBBC, vkbbcUrl, wszUrl);
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 6af4cfd606..4c6b79951a 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -128,7 +128,7 @@ void CVkProto::InitSmileys()
return;
CMStringW wszPath(FORMAT, L"%s\\%S\\Stickers\\*.png", VARSW(L"%miranda_avatarcache%").get(), m_szModuleName);
- SMADD_CONT cont = { 2, m_szModuleName, wszPath };
+ SMADD_CONT cont = { SMADD_FOLDER, m_szModuleName, wszPath };
CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont));
}