summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-15 18:00:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-15 18:00:38 +0300
commitf9b6402b4ea11142d078f1446bd3ca487b5df172 (patch)
tree75a376536c6de44080b90887bfe55b5f0d1d42ec /plugins
parentc2fbca3621318c9c8f0264e9b18d500ab500317d (diff)
NewStory: fix for loading unread events
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_log.cpp7
1 files 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