From a47bc89ece435638a85352b12ba620d662568d4a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Dec 2016 21:10:41 +0300 Subject: we add events anyway, but display them only when a window opens --- src/mir_app/src/chat_svc.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index 3840ece962..039caf16b2 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -554,17 +554,18 @@ EXTERN_C MIR_APP_DLL(int) Chat_Event(GCEVENT *gce) return 0; if (si && (si->bInitDone || gcd->iType == GC_EVENT_TOPIC || (gcd->iType == GC_EVENT_JOIN && gce->bIsMe))) { + int isOk = SM_AddEvent(pWnd, pMod, gce, bIsHighlighted); + + if (chatApi.OnAddLog) + chatApi.OnAddLog(si); + if (si->hWnd) { - int isOk = SM_AddEvent(pWnd, pMod, gce, bIsHighlighted); if (isOk) SendMessage(si->hWnd, GC_ADDLOG, 0, 0); else SendMessage(si->hWnd, GC_REDRAWLOG2, 0, 0); } - if (chatApi.OnAddLog) - chatApi.OnAddLog(si); - if (!(gce->dwFlags & GCEF_NOTNOTIFY)) { DoFlashParam param = { si, gce, bIsHighlighted, 0 }; CallFunctionSync(stubFlash, ¶m); -- cgit v1.2.3