From 278dc8fba238fe5bdfcc17ae024c6bc9bc187a2d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 2 Jun 2025 12:40:32 +0300 Subject: =?UTF-8?q?fixes=20#5042=20(=D0=9F=D1=80=D0=BE=D1=87=D0=B8=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=B2=D1=8B=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D1=8C=20=D0=BF=D0=BE=20=D1=84=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D1=83=20=D0=BF=D0=BE=D0=BF=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_log.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index 3cfe682e46..a49b53eaff 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -40,6 +40,13 @@ public: m_histCtrl->pMsgDlg = &m_pDlg; m_histCtrl->m_hContact = m_pDlg.m_hContact; WindowList_Add(g_hNewstoryLogs, m_hwnd, m_histCtrl->m_hContact); + + DB::ECPTR pCursor(DB::Events(m_pDlg.m_hContact, db_event_firstUnread(m_pDlg.m_hContact))); + while (MEVENT hDbEvent = pCursor.FetchNext()) { + DB::EventInfo dbei(hDbEvent, false); + if (dbei && !dbei.bRead) + m_pDlg.MarkEventRead(dbei); + } } void Detach() override -- cgit v1.2.3