Conversation
payload schema 声明了 quick_reply,但 _handle 调用 parseMessage 时 没有传入,字段被静默忽略;与 get_group_msg_history 行为不一致。 将 payload.quick_reply 作为第 5 个参数透传,并补充回归测试。
📦 构建产物
📋 构建信息
🚀 快速安装 (Linux)直连(需要能访问 GitHub) curl -sSL https://github.com/NapNeko/napcat-pr-release/releases/download/pr-2073-2b9b25f/install.sh | bash加速(国内推荐,ghfast.top) curl -sSL https://gh.llkk.cc/https://github.com/NapNeko/napcat-pr-release/releases/download/pr-2073-2b9b25f/install.sh | bash
|
📋 构建信息
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
get_friend_msg_history的 payload schema 声明了quick_reply字段,但_handle调用parseMessage时没有把它传入,该字段被静默忽略。改动
把
payload.quick_reply作为第 5 个参数传给parseMessage,与get_group_msg_history(GetGroupMsgHistory.ts)保持一致。quick_reply生效于 reply 段解析(APIMessage的replyElement):为 true 时跳过按 seq 的消息查询,加快历史消息解析。检查
getFriendMsgHistoryQuickReply.test.ts:断言quick_reply: true/false均透传到parseMessage第 5 参pnpm test:14 个测试文件、187 个用例全部通过eslint对改动文件无告警