summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/poll.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-10 23:31:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-10 23:31:02 +0300
commit56171c4f775f0c1cfa215b2273f5b3b9a93d145d (patch)
tree196b0ce10e8c9d2dff1f664321453bfb691ce097 /protocols/ICQ-WIM/src/poll.cpp
parent7346b03e8c19eb1c99aa7cb64948c662194ff83d (diff)
grabbed two kosher email icons from old MRA plugin
Diffstat (limited to 'protocols/ICQ-WIM/src/poll.cpp')
-rw-r--r--protocols/ICQ-WIM/src/poll.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp
index d417b09d9c..563ba2b9aa 100644
--- a/protocols/ICQ-WIM/src/poll.cpp
+++ b/protocols/ICQ-WIM/src/poll.cpp
@@ -205,13 +205,14 @@ void CIcqProto::ProcessNotification(const JSONNode &ev)
for (auto &fld : ev["fields"]) {
const JSONNode &email = fld["mailbox.newMessage"];
if (email) {
- CMStringW wszFrom(email["from"].as_mstring());
- CMStringW wszSubj(email["subject"].as_mstring());
- m_unreadEmails = email["unreadCount"].as_int();
+ JSONROOT root(email.as_string().c_str());
+ CMStringW wszFrom((*root)["from"].as_mstring());
+ CMStringW wszSubj((*root)["subject"].as_mstring());
+ m_unreadEmails = (*root)["unreadCount"].as_int();
POPUPDATAT Popup = {};
mir_snwprintf(Popup.lptzText, LPGENW("You received e-mail from %s: %s"), wszFrom.c_str(), wszSubj.c_str());
- Popup.lchIcon = IcoLib_GetIconByHandle(Skin_GetIconHandle(SKINICON_EVENT_MESSAGE), true);
+ Popup.lchIcon = IcoLib_GetIconByHandle(iconList[1].hIcolib);
if (g_bPopupService) {
wcsncpy_s(Popup.lptzContactName, m_tszUserName, _TRUNCATE);
CallService(MS_POPUP_ADDPOPUPT, (WPARAM)&Popup, 0);