Skip to content

Commit

Permalink
fix(lark): fix chat type detection (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorCY authored Oct 24, 2024
1 parent a88972e commit d9b4841
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 d9b4841

Please sign in to comment.