summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-18 17:22:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-18 17:22:02 +0300
commit2f44c5207ebad98dbf8d8e5b5d5689f32b01f0dc (patch)
treeb10a27aa0b26ea0aab7ac05b961784acb4c20c5a
parente52bd3620247a596d182d5044fb4bdab2df5ea8c (diff)
fixes #3436 (StdMsg & Scriver: broken highlight detection in group chats)
-rw-r--r--src/mir_app/src/chat_svc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index d080a4b095..f4df439417 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -487,12 +487,12 @@ static BOOL HandleChatEvent(GCEVENT &gce, int bManyFix)
case GC_EVENT_ADDSTATUS:
SM_GiveStatus(si, gce.pszUID.w, gce.pszStatus.w);
- bIsHighlighted = g_chatApi.IsHighlighted(nullptr, &gce);
+ bIsHighlighted = g_chatApi.IsHighlighted(si, &gce);
break;
case GC_EVENT_REMOVESTATUS:
SM_TakeStatus(si, gce.pszUID.w, gce.pszStatus.w);
- bIsHighlighted = g_chatApi.IsHighlighted(nullptr, &gce);
+ bIsHighlighted = g_chatApi.IsHighlighted(si, &gce);
break;
case GC_EVENT_MESSAGE:
@@ -504,7 +504,7 @@ static BOOL HandleChatEvent(GCEVENT &gce, int bManyFix)
case GC_EVENT_NICK:
SM_ChangeNick(si, &gce);
- bIsHighlighted = g_chatApi.IsHighlighted(nullptr, &gce);
+ bIsHighlighted = g_chatApi.IsHighlighted(si, &gce);
break;
case GC_EVENT_TYPING:
@@ -512,14 +512,14 @@ static BOOL HandleChatEvent(GCEVENT &gce, int bManyFix)
case GC_EVENT_JOIN:
AddUser(&gce);
- bIsHighlighted = g_chatApi.IsHighlighted(nullptr, &gce);
+ bIsHighlighted = g_chatApi.IsHighlighted(si, &gce);
break;
case GC_EVENT_PART:
case GC_EVENT_QUIT:
case GC_EVENT_KICK:
bRemoveFlag = TRUE;
- bIsHighlighted = g_chatApi.IsHighlighted(nullptr, &gce);
+ bIsHighlighted = g_chatApi.IsHighlighted(si, &gce);
break;
}