From bc238645b45539b6e8d979e1b09636803ccb0494 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sat, 5 Oct 2024 12:17:08 +0800 Subject: [PATCH] fix(api): try to fix msgBoxActiv (chrononeko/bugtracker#78) --- packages/engine-chronocat-api/src/handler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/engine-chronocat-api/src/handler.ts b/packages/engine-chronocat-api/src/handler.ts index 2dbefa2..131766b 100644 --- a/packages/engine-chronocat-api/src/handler.ts +++ b/packages/engine-chronocat-api/src/handler.ts @@ -345,7 +345,10 @@ const responseDispatcher = async ( switch (listType) { case ContactListType.Normal: { for (const contact of changedList) - if (contact.chatType === ChatType.MsgBox) + if ( + contact.chatType === ChatType.Private || + contact.chatType === ChatType.Group + ) ctx.chronocatEngineChronocatApi.msgBoxActiv.activate({ chatType: contact.chatType, peerUid: contact.peerUid,