From be005fdd7a3a801ec698dc211cd2e0dd80030fb6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Oct 2023 16:00:06 +0300 Subject: SmileyAdd_LoadContactSmileys - helper function for adding custom smileys --- protocols/Telegram/src/proto.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/Telegram/src/proto.cpp') 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() -- cgit v1.2.3