feat: add more msgElement

This commit is contained in:
pk5ls20 committed 2024-10-18 04:35:23 +08:00
1 parent 0cb68d3737
commit e4a533e7b7
5 files changed
+211 -51

No files matched your search

+1 -2
View File
@@ -14,8 +14,7 @@ export class PacketMsgBuilder {
buildFakeMsg(selfUid: string, element: PacketForwardNode[]): NapProtoEncodeStructType<typeof PushMsgBody>[] {
return element.map((node): NapProtoEncodeStructType<typeof PushMsgBody> => {
const avatar = `https://q.qlogo.cn/headimg_dl?dst_uin=${node.senderId}&spec=640&img_type=jpg`;
const msgElement = node.msg.map((msg) => msg.buildElement() ?? []);
// this.logger.logDebug(`NOW MSG ELEMENT: ${JSON.stringify(msgElement)}`);
const msgElement = node.msg.flatMap(msg => msg.buildElement() ?? []);
return {
responseHead: {
fromUid: "",