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:
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);
|
||||
|
||||
Reference in new issue
Block a user