diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
commit | c9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch) | |
tree | e15ce76cb41feb3375a76c95d861294b899bfe48 /protocols/JabberG | |
parent | 6024e32d70da7a7c703de51e30b6c6407df8a745 (diff) |
MessageWindowEventData: useless structure removed
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_menu.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 715909e915..5c601611b6 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -796,29 +796,29 @@ void CJabberProto::MenuUpdateSrmmIcon(JABBER_LIST_ITEM *item) Srmm_SetIconFlags(hContact, m_szModuleName, 0, item->arResources.getCount() ? 0 : MBF_DISABLED);
}
-int CJabberProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam)
+int CJabberProto::OnProcessSrmmEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *event = (MessageWindowEventData *)lParam;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
- if (event->uType == MSG_WINDOW_EVT_OPEN) {
+ if (uType == MSG_WINDOW_EVT_OPEN) {
if (!hDialogsList)
hDialogsList = WindowList_Create();
- WindowList_Add(hDialogsList, event->hwndWindow, event->hContact);
+ WindowList_Add(hDialogsList, pDlg->GetHwnd(), pDlg->m_hContact);
- ptrA jid(getUStringA(event->hContact, "jid"));
+ ptrA jid(getUStringA(pDlg->m_hContact, "jid"));
if (jid != nullptr) {
JABBER_LIST_ITEM *pItem = ListGetItemPtr(LIST_ROSTER, jid);
if (pItem && m_ThreadInfo && (m_ThreadInfo->jabberServerCaps & JABBER_CAPS_ARCHIVE_AUTO) && m_bEnableMsgArchive)
- RetrieveMessageArchive(event->hContact, pItem);
+ RetrieveMessageArchive(pDlg->m_hContact, pItem);
}
}
- else if (event->uType == MSG_WINDOW_EVT_CLOSING) {
+ else if (uType == MSG_WINDOW_EVT_CLOSING) {
if (hDialogsList)
- WindowList_Remove(hDialogsList, event->hwndWindow);
+ WindowList_Remove(hDialogsList, pDlg->GetHwnd());
if (m_bJabberOnline) {
char jid[JABBER_MAX_JID_LEN];
- if (GetClientJID(event->hContact, jid, _countof(jid))) {
+ if (GetClientJID(pDlg->m_hContact, jid, _countof(jid))) {
pResourceStatus r(ResourceInfoFromJID(jid));
if (m_bEnableChatStates && (GetResourceCapabilities(jid, r) & JABBER_CAPS_CHATSTATES))
m_ThreadInfo->send(XmlNode("message") << XATTR("to", jid) << XATTR("type", "chat") << XATTRID(SerialNext()) << XCHILDNS("gone", JABBER_FEAT_CHATSTATES));
|