feat: add forward message preview metadata support

This commit is contained in:
DrSmoothl committed 2026-05-13 20:53:26 +08:00
1 parent ada591b1b4
commit ea5a1d505a
7 files changed
+202 -14

No files matched your search

+9
View File
@@ -27,6 +27,15 @@ export interface MessageElement {
flash?: boolean;
resId?: string;
fileHash?: string;
// Preview-bubble metadata for the `forward` element. Drives the XML
// template (brief/title/news/summary/tSum) the recipient renders before
// they tap to expand. When unset, the element builder falls back to
// generic defaults so old call sites keep working.
forwardSource?: string;
forwardSummary?: string;
forwardPrompt?: string;
forwardNews?: Array<{ text: string }>;
forwardTSum?: number;
// Server-side fingerprints carried from receive side so a forward can do a
// pure md5/sha1 fast-upload without re-downloading the original bytes.
// Set together with `noByteFallback: true` to make the upload modules throw