diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-26 15:26:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-26 15:26:46 +0300 |
commit | 53452cdfd0f64b78eb91d80f2a266ecdcc4953c0 (patch) | |
tree | 5de6cf2c5af039f4e2cc64ee01bfed99647ec399 /protocols/Facebook/src | |
parent | dcc996f1eee938ef6acf6895708f519951c84933 (diff) |
code simplification + cleaning
Diffstat (limited to 'protocols/Facebook/src')
-rw-r--r-- | protocols/Facebook/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Facebook/src/server.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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");
|