fix(onebot): disambiguate same-second private replies

Carry quoted text into receipt lookup and require a unique content match when several outgoing messages share a timestamp. Preserve sequence matches and log unresolved ambiguity.

Fixes #502
This commit is contained in:
DrSmoothl committed 2026-10-04 12:56:25 +08:00
1 parent 2c7d9b6387
commit b9bdcec5f1
7 files changed
+100 -12

No files matched your search

+1 -1
View File
@@ -39,6 +39,7 @@ export type MessageIdResolver = (
sequence: number,
eventName: string,
timestamp?: number,
replyElements?: readonly MessageElement[],
) => number;
export type MediaSegmentSink = (
@@ -120,4 +121,3 @@ export async function convertEvent(
return (converter as (ctx: ConverterContext, event: QQEventVariant) => JsonObject | Promise<JsonObject>)(ctx, event);
}