summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-14 16:43:53 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-14 16:43:53 +0300
commit64b53b1c28ffa353ff2f0c0a01405f9afc2b7bf1 (patch)
tree09f966d418bd50c8d63b52ec7896462803dc6294 /plugins/Scriver/src/msgdialog.cpp
parent29af90eb23768e9eb2c29091fefaaa10c78ff8cd (diff)
common group chat code moved to mir_app
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp17
1 files changed, 2 insertions, 15 deletions
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) {