feat(messages): support animated face results

Allow selecting animated face results and preserve received results in messages and history. Keep the default selection when no result is supplied.

Fixes #487
This commit is contained in:
DrSmoothl committed 2026-09-27 13:44:48 +08:00
1 parent 8cc5326a3a
commit 93b5c1b4bf
13 files changed
+185 -15

No files matched your search

@@ -921,7 +921,11 @@ function convertElements(elems: ElemDecoded[], isGroup: boolean): MessageElement
// this protobuf twice.
const extra = decodedBigFaces.get(elem);
if (isValidBigFace(extra)) {
result.push({ type: 'face', faceId: extra.qsid });
result.push({
type: 'face',
faceId: extra.qsid,
...(extra.resultId != null ? { resultId: extra.resultId } : {}),
});
}
} else if (svcType === 45 && ce.pbElem && ce.pbElem.length > 0) {
const markdown = decodedMarkdown.get(elem);