Skip to content

Commit

Permalink
fix(lark): 解决私聊判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorCY committed Sep 28, 2024
1 parent 26064aa commit f82b6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/lark/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function adaptSession<C extends Context>(bot: FeishuBot<C>, 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)
Expand Down

0 comments on commit f82b6ca

Please sign in to comment.