diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-21 17:33:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-21 17:33:46 +0300 |
commit | 632a563dab49d9c0b534dc9d29f7ff2aa021dcea (patch) | |
tree | aba042947094402c7d6f26d784b6772a6ca6ccd0 /plugins/TabSRMM/src/generic_msghandlers.cpp | |
parent | 542182c9d353cba717ce7183690abc6476b3f448 (diff) |
fixes #2222 (TabSRMM: не отключать получение новых сообщений при отключённой автопрокрутке)
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 009b6f3f64..5d093e9bd9 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -1083,23 +1083,10 @@ void CMsgDialog::DM_EventAdded(WPARAM hContact, LPARAM lParam) } m_cache->updateStats(TSessionStats::UPDATE_WITH_LAST_RCV, 0); - if (hDbEvent != m_hDbEventFirst || isChat()) { - if (!m_bScrollingDisabled) - StreamEvents(hDbEvent, 1, 1); - else { - if (m_iNextQueuedEvent >= m_iEventQueueSize) { - m_hQueuedEvents = (MEVENT*)mir_realloc(m_hQueuedEvents, (m_iEventQueueSize + 10) * sizeof(MEVENT)); - m_iEventQueueSize += 10; - } - m_hQueuedEvents[m_iNextQueuedEvent++] = hDbEvent; - - wchar_t szBuf[100]; - mir_snwprintf(szBuf, TranslateT("Auto scrolling is disabled, %d message(s) queued (press F12 to enable it)"), m_iNextQueuedEvent); - SetDlgItemText(m_hwnd, IDC_LOGFROZENTEXT, szBuf); - RedrawWindow(GetDlgItem(m_hwnd, IDC_LOGFROZENTEXT), nullptr, nullptr, RDW_INVALIDATE); - } - } - else RemakeLog(); + if (hDbEvent != m_hDbEventFirst || isChat()) + StreamEvents(hDbEvent, 1, 1); + else + RemakeLog(); // handle tab flashing if (!bDisableNotify && !bIsStatusChangeEvent) |