diff options
Diffstat (limited to 'src/mir_app/src/chat_svc.cpp')
-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);
|