summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-26 16:00:06 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-26 16:00:06 +0300
commitbe005fdd7a3a801ec698dc211cd2e0dd80030fb6 (patch)
tree2dd21c735e55845e2c86d0b1a51d5de3206281dc /protocols/Telegram/src/proto.cpp
parentba5a0a06e1ed5b0dc3e330dbb939f13a6651b750 (diff)
SmileyAdd_LoadContactSmileys - helper function for adding custom smileys
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 61ecf9c132..e6de52e581 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -150,12 +150,9 @@ void CTelegramProto::OnModulesLoaded()
}
setByte(DBKEY_COMPAT, 3);
- m_bSmileyAdd = ServiceExists(MS_SMILEYADD_LOADCONTACTSMILEYS);
- if (m_bSmileyAdd) {
- CMStringW wszStickersPath(GetAvatarPath() + L"\\Stickers\\*.*");
- SMADD_CONT cont = { SMADD_FOLDER, m_szModuleName, wszStickersPath };
- CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont));
- }
+ m_bSmileyAdd = ServiceExists(MS_SMILEYADD_REPLACESMILEYS);
+ if (m_bSmileyAdd)
+ SmileyAdd_LoadContactSmileys(SMADD_FOLDER, m_szModuleName, GetAvatarPath() + L"\\Stickers\\*.*");
}
void CTelegramProto::OnShutdown()