diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-14 16:43:53 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-14 16:43:53 +0300 |
commit | 64b53b1c28ffa353ff2f0c0a01405f9afc2b7bf1 (patch) | |
tree | 09f966d418bd50c8d63b52ec7896462803dc6294 /plugins/TabSRMM | |
parent | 29af90eb23768e9eb2c29091fefaaa10c78ff8cd (diff) |
common group chat code moved to mir_app
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 3 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgother.cpp | 5 |
3 files changed, 3 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 31682a5f0e..166468ab11 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -40,8 +40,7 @@ static void __stdcall Chat_DismissPopup(void *pi) {
SESSION_INFO *si = (SESSION_INFO*)pi;
if (si->hContact)
- if (Clist_GetEvent(si->hContact, 0))
- Clist_RemoveEvent(si->hContact, GC_FAKE_EVENT);
+ si->markRead(true);
if (si->pDlg && si->pDlg->timerFlash.Stop())
FlashWindow(si->pDlg->GetHwnd(), FALSE);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index d158902e32..a0fdd09f57 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -681,9 +681,7 @@ void CMsgDialog::OnDestroy() DestroyWindow(m_hwndPanelPicParent);
if (m_si) {
- if (Clist_GetEvent(m_si->hContact, 0))
- Clist_RemoveEvent(m_si->hContact, GC_FAKE_EVENT);
- m_si->wState &= ~STATE_TALK;
+ m_si->markRead(true);
m_si->pDlg = nullptr;
m_si = nullptr;
}
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index 982ab1cdcb..f9d345a4d8 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -2590,10 +2590,7 @@ void CMsgDialog::UpdateWindowState(UINT msg) if (m_si) {
m_hTabIcon = m_hTabStatusIcon;
- if (db_get_w(m_si->hContact, m_si->pszModule, "ApparentMode") != 0)
- db_unset(m_si->hContact, m_si->pszModule, "ApparentMode");
- if (Clist_GetEvent(m_si->hContact, 0))
- Clist_RemoveEvent(m_si->hContact, GC_FAKE_EVENT);
+ m_si->markRead(true);
UpdateTitle();
m_hTabIcon = m_hTabStatusIcon;
|