From 64b53b1c28ffa353ff2f0c0a01405f9afc2b7bf1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Oct 2024 16:43:53 +0300 Subject: common group chat code moved to mir_app --- plugins/Scriver/src/msgdialog.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 602aeaeb0e..2477dcbfa6 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -855,17 +855,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) case DM_ACTIVATE: if (isChat()) { - if (m_si->wState & STATE_TALK) { - m_si->wState &= ~STATE_TALK; - db_unset(m_hContact, m_si->pszModule, "ApparentMode"); - } - - if (m_si->wState & GC_EVENT_HIGHLIGHT) { - m_si->wState &= ~GC_EVENT_HIGHLIGHT; - - if (Clist_GetEvent(m_hContact, 0)) - Clist_RemoveEvent(m_hContact, GC_FAKE_EVENT); - } + m_si->markRead(); FixTabIcons(); if (!m_si->pDlg) { @@ -882,10 +872,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) SetFocus(m_message.GetHwnd()); if (isChat()) { - if (db_get_w(m_hContact, m_si->pszModule, "ApparentMode") != 0) - db_unset(m_hContact, m_si->pszModule, "ApparentMode"); - if (Clist_GetEvent(m_hContact, 0)) - Clist_RemoveEvent(m_hContact, GC_FAKE_EVENT); + m_si->markRead(true); } else { if (m_hDbUnreadEventFirst != 0) { -- cgit v1.2.3