From 69d42fb56c35410498a7db9a380f14c5c3d16578 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Tue, 10 Sep 2024 14:35:53 +0800 Subject: [PATCH] feat(event): handle `guild-request` invitation --- packages/engine-chronocat-event/src/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/engine-chronocat-event/src/handler.ts b/packages/engine-chronocat-event/src/handler.ts index fbfb3af..1abf63c 100644 --- a/packages/engine-chronocat-event/src/handler.ts +++ b/packages/engine-chronocat-event/src/handler.ts @@ -219,7 +219,7 @@ const dispatcher = async ( // eslint-disable-next-line @typescript-eslint/no-misused-promises notifies.forEach(async (x) => { - if (x.type !== 7 || x.status !== 1) return + if ((x.type !== 1 && x.type !== 7) || x.status !== 1) return const uin = await ctx.chronocat.uix.getUin2(x.user1.uid) // 此时用户刚刚申请入群,不在群里,不能带 group 场景 if (!uin) {