diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-15 20:37:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-15 20:37:26 +0300 |
commit | 0f09bc6a33604e79996caaf6ff021226e96e53fd (patch) | |
tree | f603883af17f3b72fd5adbf11b8846ef191e8208 /plugins/Scriver/src | |
parent | 123fa87f68c42b4f121ad315623a9fb5a39ab30c (diff) |
fixes #3458 (tabSRMM: двоятся сообщения)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 9371504a9d..8a16ebd013 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -643,20 +643,20 @@ public: ////////////////////////////////////////////////////////////////////////////////////////
- void LogEvents(struct LOGINFO *lin, bool bRedraw) override
+ void LogEvents(SESSION_INFO *si, int iStart, bool bRedraw) override
{
- auto *si = m_pDlg.m_si;
- if (m_rtf.GetHwnd() == nullptr || lin == nullptr || si == nullptr)
+ if (m_rtf.GetHwnd() == nullptr || si == nullptr || si == nullptr)
return;
- if (!bRedraw && (si->iType == GCW_CHATROOM || si->iType == GCW_PRIVMESS) && !(m_pDlg.m_iLogFilterFlags & lin->iType))
+ auto &lin = si->arEvents[iStart];
+ if (!bRedraw && (si->iType == GCW_CHATROOM || si->iType == GCW_PRIVMESS) && !(m_pDlg.m_iLogFilterFlags & lin.iType))
return;
LOGSTREAMDATA streamData;
memset(&streamData, 0, sizeof(streamData));
streamData.hwnd = m_rtf.GetHwnd();
streamData.si = si;
- streamData.lin = lin;
+ streamData.iStartEvent = iStart;
streamData.bStripFormat = FALSE;
streamData.isFirst = bRedraw ? 1 : m_rtf.GetRichTextLength() == 0;
@@ -702,7 +702,7 @@ public: m_rtf.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// do smileys
- if (g_dat.smileyAddInstalled && (bRedraw || (lin->ptszText && lin->iType != GC_EVENT_JOIN && lin->iType != GC_EVENT_NICK && lin->iType != GC_EVENT_ADDSTATUS && lin->iType != GC_EVENT_REMOVESTATUS))) {
+ if (g_dat.smileyAddInstalled && (bRedraw || (lin.ptszText && lin.iType != GC_EVENT_JOIN && lin.iType != GC_EVENT_NICK && lin.iType != GC_EVENT_ADDSTATUS && lin.iType != GC_EVENT_REMOVESTATUS))) {
newsel.cpMax = -1;
newsel.cpMin = sel.cpMin;
if (newsel.cpMin < 0)
|