summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-15 20:37:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-15 20:37:26 +0300
commit0f09bc6a33604e79996caaf6ff021226e96e53fd (patch)
treef603883af17f3b72fd5adbf11b8846ef191e8208 /plugins/NewStory/src
parent123fa87f68c42b4f121ad315623a9fb5a39ab30c (diff)
fixes #3458 (tabSRMM: двоятся сообщения)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history_log.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index 05b53ca28a..87b0b7fc9d 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -60,12 +60,10 @@ public:
SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0);
}
- void LogEvents(LOGINFO *pLog, bool) override
+ void LogEvents(SESSION_INFO *si, int iStart, bool) override
{
- while (pLog) {
- SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)pLog);
- pLog = pLog->prev;
- }
+ for (int i=iStart; i < si->arEvents.getCount(); i++)
+ SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)&si->arEvents[i]);
}
void Resize() override