diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-26 16:00:06 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-26 16:00:06 +0300 |
commit | be005fdd7a3a801ec698dc211cd2e0dd80030fb6 (patch) | |
tree | 2dd21c735e55845e2c86d0b1a51d5de3206281dc /protocols/VKontakte/src/misc.cpp | |
parent | ba5a0a06e1ed5b0dc3e330dbb939f13a6651b750 (diff) |
SmileyAdd_LoadContactSmileys - helper function for adding custom smileys
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 73ae348edc..46aa6312ff 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1439,7 +1439,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport else if (m_vkOptions.bUseStikersAsStaticSmileys)
res.AppendFormat(L"[sticker:%d]", iStickerId);
else {
- if (ServiceExists(MS_SMILEYADD_LOADCONTACTSMILEYS)) {
+ if (ServiceExists(MS_SMILEYADD_REPLACESMILEYS)) {
CMStringW wszPath(FORMAT, L"%s\\%S\\Stickers", VARSW(L"%miranda_avatarcache%").get(), m_szModuleName);
CreateDirectoryTreeW(wszPath);
@@ -1465,10 +1465,9 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport else bSuccess = true;
if (bSuccess) {
- res.AppendFormat(L"[sticker-%d]", iStickerId);
+ res.AppendFormat(L"[sticker-%d]", iStickerId);
- SMADD_CONT cont = { SMADD_FILE, m_szModuleName, wszFileName };
- CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont));
+ SmileyAdd_LoadContactSmileys(SMADD_FILE, m_szModuleName, wszFileName);
}
else res += SetBBCString(TranslateT("Sticker"), iBBC, vkbbcUrl, wszUrl);
}
|