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:
4 files changed
+231
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user