diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-13 21:10:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-13 21:10:41 +0300 |
commit | a47bc89ece435638a85352b12ba620d662568d4a (patch) | |
tree | 800e00aa044b35499eaff41ffe97df3a75da7d7c /src/mir_app | |
parent | 912bde554c5640f844949eb198cd86075072ef90 (diff) |
we add events anyway, but display them only when a window opens
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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);
|