Skip to content

Tags: NapNeko/NapCatQQ

Tags

4.18.10

Toggle 4.18.10's commit message

v4.18.13

Toggle v4.18.13's commit message

v4.18.12

Toggle v4.18.12's commit message

v4.18.11

Toggle v4.18.11's commit message

v4.18.10

Toggle v4.18.10's commit message

v4.18.9

Toggle v4.18.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(onebot): 引用回复解析中 quick_reply 形参未解构导致 reply 段丢失 (#1952)

* fix(onebot): destructure quick_reply in replyElement converter

parseMessageSegments passes the whole RecvMessageContext object as the
4th argument to element converters, but replyElement declared the
parameter as `quick_reply` without destructuring. The object is always
truthy, so every reply element took the quick-reply branch and skipped
lookup methods 2/3 whenever method 1 found no match, dropping the reply
segment from the reported OneBot message (it degrades to at + text).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(onebot): fall back to msgSeq match when msgRandom mismatches in reply lookup

All three reply lookup methods matched candidates only by msgRandom
whenever records.msgRandom was present. When the recorded msgRandom is
stale or inconsistent with the message database, the quoted message
returned by a seq-based query was discarded even though its msgSeq
matched exactly. Match by msgRandom first and fall back to an exact
msgSeq match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: xulang <xuxiaolang2003@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

v4.18.8

Toggle v4.18.8's commit message

v4.18.7

Toggle v4.18.7's commit message

v4.18.6

Toggle v4.18.6's commit message

v4.18.5

Toggle v4.18.5's commit message