fix(protocol): preserve nested XML forward lookup keys

This commit is contained in:
手瓜一十雪 committed 2026-10-18 18:59:22 +08:00
1 parent a69ec6fedb
commit bdf224cbc9
3 files changed
+248 -1

No files matched your search

@@ -137,9 +137,12 @@ function decodeRichMsgCard(
if (svcId === 35) {
const match = /\bm_resid="([^"]+)"/.exec(content);
// XML forwards link bundled inner messages by m_fileName, just as
// LightApp forwards use uniseq. Keep it for the outer payload lookup.
const fileName = /\bm_fileName="([^"]+)"/.exec(content)?.[1];
return {
element: match
? { type: 'forward', resId: match[1] }
? { type: 'forward', resId: match[1], forwardUuid: fileName }
: { type: 'xml', text: content, subType: svcId },
error: null,
inputBytes: data.length,