From 3f6bdf928ebf7e7e70d999905eb363386db2868a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Apr 2017 17:03:42 +0300 Subject: fixes #794 --- src/core/stdmsg/src/msgdialog.cpp | 6 +++++- src/core/stdmsg/src/msgs.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 4ad170a8bf..7cd9f37272 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -1114,6 +1114,10 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) } return TRUE; + case DM_APPENDTOLOG: + StreamInEvents(wParam, 1, 1); + break; + case DM_REMAKELOG: StreamInEvents(m_hDbEventFirst, -1, 0); break; @@ -1140,7 +1144,7 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) SendMessage(m_hwnd, DM_UPDATELASTMESSAGE, 0, 0); } if (hDbEvent != m_hDbEventFirst && db_event_next(m_hContact, hDbEvent) == 0) - StreamInEvents(hDbEvent, 1, 1); + SendMessage(m_hwnd, DM_APPENDTOLOG, hDbEvent, 0); else SendMessage(m_hwnd, DM_REMAKELOG, 0, 0); diff --git a/src/core/stdmsg/src/msgs.h b/src/core/stdmsg/src/msgs.h index e7a9ee5076..9e3e11b129 100644 --- a/src/core/stdmsg/src/msgs.h +++ b/src/core/stdmsg/src/msgs.h @@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define DM_CASCADENEWWINDOW (WM_USER+13) #define DM_OPTIONSAPPLIED (WM_USER+14) #define DM_UPDATETITLE (WM_USER+16) +#define DM_APPENDTOLOG (WM_USER+17) #define DM_NEWTIMEZONE (WM_USER+18) #define DM_TYPING (WM_USER+20) #define DM_UPDATEWINICON (WM_USER+21) -- cgit v1.2.3