diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-04 17:19:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-04 17:19:23 +0300 |
commit | edf5b2f830428d258237f707fb8e51f02670715e (patch) | |
tree | 9e0bc5dc454d87d8842da5807a94ef0c0df3a487 /plugins/NewStory/src | |
parent | cf23762bb2375b6b2b84610360387f6b9531c15e (diff) |
Newstory: no need to add whole history into log window
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 20c5d10da5..6f5cab65bd 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -551,7 +551,7 @@ public: UpdateTitle(); - ADDEVENTS tmp = { m_hContact, 0, -1 }; + ADDEVENTS tmp = { m_hContact, db_event_first(m_hContact), -1 }; SendMessage(m_histControl.GetHwnd(), NSM_ADDEVENTS, WPARAM(&tmp), 0); Window_SetIcon_IcoLib(m_hwnd, g_plugin.getIconHandle(ICO_NEWSTORY)); diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 56dbaa9edc..a965e7eb81 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -493,12 +493,8 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM // History list control messages case NSM_ADDEVENTS: - { - auto *p = (ADDEVENTS *)wParam; - if (p->eventCount == -1) - p->hFirstEVent = db_event_first(p->hContact); + if (auto *p = (ADDEVENTS *)wParam) data->items.addEvent(p->hContact, p->hFirstEVent, p->eventCount); - } data->redrawTimer.Stop(); data->redrawTimer.Start(100); |