Files
SnowLuma/packages
DrSmoothl 457186419f fix(onebot): key self-sent c2c messages by clientSequence so replies resolve
A friend replying to a bot self-sent private message → bot get_msg(quoted id)
returned "message not found" (bot then answered "无法解析申请信息"). c2c replies
reference a message by the sender's clientSequence, not the server sequence
(Lagrange: OrigSeqs = ClientSequence || Sequence), but self-sent private
messages were keyed by the server (private) sequence — so the incoming reply's
resolved id hash(clientSequence, peer, private) never matched the stored event.

Reply-SENDING still worked because it only needs the meta row (resolveReplySequence
queries by hash, no data), not the full event (findEvent requires data IS NOT
NULL) — which is exactly why get_msg / "引用解析" failed but replying didn't.

Key self-sent c2c messages by clientSequence (fallback to sequence, mirroring
Lagrange's `||`) via a shared c2cSelfMessageId helper, across all three c2c
self-sent paths (send_private_msg, private forward, forward-single-to-user).
Group messages unchanged (their replies reference the shared group sequence).
2026-06-15 10:03:26 +08:00
..
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00