fix(onebot): restore nested chat record forwarding

Restore expansion and cross-chat forwarding for nested chat records that use preview-only cards.

Return an error when nested content cannot be retrieved instead of producing an unusable message.

Refs #589
This commit is contained in:
DrSmoothl committed 2026-10-27 09:23:48 +08:00
1 parent 3acd3cd28b
commit 05f18614c1
4 files changed
+231 -3

No files matched your search

+5 -1
View File
@@ -1064,7 +1064,11 @@ export class ForwardApi {
continue;
}
const body = piggybackByUuid.get(uuid);
const body =
piggybackByUuid.get(uuid) ??
(uuid.startsWith('MultiMsg_')
? piggybackByUuid.get(uuid.slice('MultiMsg_'.length))
: undefined);
if (!body) {
continue;