Skip to content

fix(lark): allow null user_id in group message mentions - #907

Open
yunhis wants to merge 1 commit into
iOfficeAI:mainfrom
yunhis:fix/lark-mention-user-id-null
Open

fix(lark): allow null user_id in group message mentions#907
yunhis wants to merge 1 commit into
iOfficeAI:mainfrom
yunhis:fix/lark-mention-user-id-null

Conversation

@yunhis

@yunhis yunhis commented Aug 20, 2026

Copy link
Copy Markdown

Feishu group messages set mentions[].id.user_id to null when the bot is mentioned, which made serde fail to deserialize the whole MessageEvent (invalid type: null, expected a string) and silently dropped the message. Reuse the existing deserialize_nullable_string helper (already used by SenderIdContainer) for MentionId fields, and add a regression test.

Feishu group messages set mentions[].id.user_id to null when the bot is mentioned, which made serde fail to deserialize the whole MessageEvent (invalid type: null, expected a string) and silently dropped the message. Reuse the existing deserialize_nullable_string helper (already used by SenderIdContainer) for MentionId fields, and add a regression test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant