From 16dae6bd7df08d11cf9175239fb9b27f88c6f12c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 2 Aug 2023 14:11:40 +0300 Subject: =?UTF-8?q?fixes=20#2373=20(NewStory:=20=D0=BD=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D1=8E=D1=82=20=D1=84=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D1=82=D1=80=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_log.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'plugins/NewStory/src') diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index 35f3b47c97..8c9775706b 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -1,12 +1,12 @@ #include "stdafx.h" -class CNewStoryLogWindow : public CSrmmLogWindow +class CNewStoryLogWindow : public CSimpleLogWindow { HWND m_hwnd = nullptr; public: CNewStoryLogWindow(CMsgDialog &pDlg) : - CSrmmLogWindow(pDlg) + CSimpleLogWindow(pDlg) { } @@ -60,13 +60,9 @@ public: SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0); } - void LogEvents(const LOGINFO *lin) override + void LogChatEvent(const LOGINFO &lin) override { - if (lin == nullptr) { - for (auto &it: m_pDlg.getChat()->arEvents) - SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)it); - } - else SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)lin); + SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)&lin); } void Resize() override -- cgit v1.2.3