From f9b6402b4ea11142d078f1446bd3ca487b5df172 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Oct 2023 18:00:38 +0300 Subject: NewStory: fix for loading unread events --- plugins/NewStory/src/history_log.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index 31ed9d9655..2e4be02948 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -72,12 +72,15 @@ public: return 1; } - void LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) override + void LogEvents(MEVENT hDbEvent, int count, bool bAppend) override { + if (!hDbEvent) + return; + if (!bAppend) Clear(); - m_histCtrl->AddEvent(m_pDlg.m_hContact, hDbEventFirst, count); + m_histCtrl->AddEvent(m_pDlg.m_hContact, hDbEvent, count); } void LogChatEvent(const LOGINFO &lin) override -- cgit v1.2.3