summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:57:26 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:57:26 +0300
commitbc287d3e214f683d28097e155ed76f4f3baad205 (patch)
tree0b635bd3d238adace0e4d56493930280942db86d
parentc7d065645853b2e614e8557fa01057efaf5e6517 (diff)
fixes #4414 (Невозможно открыть контакт, пока он мигает событием "контакт появился в сети")
-rw-r--r--src/mir_app/src/clistevents.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp
index 6cecda84d5..3d38008d19 100644
--- a/src/mir_app/src/clistevents.cpp
+++ b/src/mir_app/src/clistevents.cpp
@@ -302,7 +302,8 @@ MIR_APP_DLL(CListEvent *) Clist_GetEvent(MCONTACT hContact, int idx)
int EventsProcessContactDoubleClick(MCONTACT hContact)
{
if (auto *pEvent = Clist_GetEvent(hContact, 0)) {
- CallService(pEvent->pszService, 0, (LPARAM)pEvent);
+ if (CallService(pEvent->pszService, 0, (LPARAM)pEvent) == CALLSERVICE_NOTFOUND)
+ return 1;
// if the event is still alive, free it
if (g_cliEvents.indexOf(pEvent))