From f82b6cac6e17585d30213612d6bba2894047b528 Mon Sep 17 00:00:00 2001 From: MirrorCY <42@koishi.chat> Date: Sat, 28 Sep 2024 21:45:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(lark):=20=E8=A7=A3=E5=86=B3=E7=A7=81?= =?UTF-8?q?=E8=81=8A=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapters/lark/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/lark/src/utils.ts b/adapters/lark/src/utils.ts index 5788983b..412ce21b 100644 --- a/adapters/lark/src/utils.ts +++ b/adapters/lark/src/utils.ts @@ -78,7 +78,7 @@ export async function adaptSession(bot: FeishuBot, body: A switch (body.type) { case 'im.message.receive_v1': session.type = 'message' - session.subtype = body.event.message.chat_id + session.subtype = body.event.message.chat_type if (session.subtype === 'p2p') session.subtype = 'private' session.isDirect = session.subtype === 'private' adaptSender(body.event.sender, session)