summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
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()