fix(api): try to fix msgBoxActiv (chrononeko/bugtracker#78)

This commit is contained in:
Il Harper 2024-10-05 12:17:08 +08:00
parent 7d0ff80fbf
commit bc238645b4
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -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,