From 53452cdfd0f64b78eb91d80f2a266ecdcc4953c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Oct 2023 15:26:46 +0300 Subject: code simplification + cleaning --- protocols/Facebook/src/proto.cpp | 2 +- protocols/Facebook/src/server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Facebook/src') diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index 5e896c6f4e..6f3209fe02 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -137,7 +137,7 @@ void FacebookProto::OnModulesLoaded() VARSW wszCache(L"%miranda_avatarcache%"); CMStringW wszPath(FORMAT, L"%s\\%S\\Stickers\\*.png", wszCache.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)); wszPath.Format(L"%s\\%S\\Stickers\\*.webp", wszCache.get(), m_szModuleName); diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index b2f424a0e0..482db30bd7 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -783,7 +783,7 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) szBody += "\r\n"; szBody += "STK{" + stickerId + "}"; - SMADD_CONT cont = { 1, m_szModuleName, wszFileName }; + SMADD_CONT cont = { SMADD_FILE, m_szModuleName, wszFileName }; CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont)); } else szBody += TranslateU("Sticker received"); -- cgit v1.2.3