From 2f44c5207ebad98dbf8d8e5b5d5689f32b01f0dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 18 Mar 2023 17:22:02 +0300 Subject: fixes #3436 (StdMsg & Scriver: broken highlight detection in group chats) --- src/mir_app/src/chat_svc.cpp | 10 +++++----- 1 file 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; } -- cgit v1.2.3