summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
commitc9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch)
treee15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/MessageState/src
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/MessageState/src')
-rw-r--r--plugins/MessageState/src/messagestate.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/MessageState/src/messagestate.cpp b/plugins/MessageState/src/messagestate.cpp
index 42063a2a00..f5981729c2 100644
--- a/plugins/MessageState/src/messagestate.cpp
+++ b/plugins/MessageState/src/messagestate.cpp
@@ -91,11 +91,12 @@ static int OnEventFilterAdd(WPARAM hContact, LPARAM lParam)
return 0;
}
-static int OnSrmmWindowOpened(WPARAM, LPARAM lParam)
+static int OnSrmmWindowOpened(WPARAM uType, LPARAM lParam)
{
- auto *pEvent = (MessageWindowEventData*)lParam;
- if (pEvent->uType == MSG_WINDOW_EVT_OPENING)
- IconsUpdate(pEvent->hContact);
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+
+ if (uType == MSG_WINDOW_EVT_OPENING)
+ IconsUpdate(pDlg->m_hContact);
return 0;
}