fix(onebot): keep synthetic sequences out of history
Distinguish QQ-authoritative message sequences from local message IDs so group files and reply placeholders cannot become history anchors or be reused by protocol actions. Filter QQ null roam records and migrate previously stored synthetic rows. Fixes #254
This commit is contained in:
17 files changed
+758
-45
No files matched your search
@@ -15,7 +15,12 @@ export { MessageElementValidationError } from '@snowluma/protocol/element-manife
|
||||
|
||||
export interface ParseMessageOptions {
|
||||
resolveReplySequence?: (replyMessageId: number) => number | null;
|
||||
resolveReplyMeta?: (replyMessageId: number) => { senderUin: number; time: number; random: number } | null;
|
||||
resolveReplyMeta?: (replyMessageId: number) => {
|
||||
senderUin: number;
|
||||
time: number;
|
||||
random: number;
|
||||
sequenceAuthoritative?: boolean;
|
||||
} | null;
|
||||
resolveMentionUid?: (targetUin: number) => string | null | Promise<string | null>;
|
||||
resolveContactArk?: (contactType: string, contactId: number) => string | null | Promise<string | null>;
|
||||
musicSignUrl?: string;
|
||||
|
||||
Reference in new issue
Block a user