summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r--plugins/NewStory/src/history.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index 548c387501..6e52e486dd 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -559,8 +559,8 @@ public:
SetWindowText(m_hwnd, TranslateT("System history"));
}
- if (m_hContact != INVALID_CONTACT_ID)
- PostMessage(m_histControl.GetHwnd(), NSM_ADDHISTORY, m_hContact, 0);
+ ADDEVENTS tmp = { m_hContact, 0, -1 };
+ SendMessage(m_histControl.GetHwnd(), NSM_ADDEVENTS, WPARAM(&tmp), 0);
Window_SetIcon_IcoLib(m_hwnd, g_plugin.getIconHandle(ICO_NEWSTORY));