From 4427774c2df22eefe038e275157da1a98c25535e Mon Sep 17 00:00:00 2001
From: idranme <idranme@outlook.com>
Date: Mon, 12 Aug 2024 00:01:06 +0800
Subject: [PATCH] fix: multiForwardMsg

---
 src/ntqqapi/api/msg.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ntqqapi/api/msg.ts b/src/ntqqapi/api/msg.ts
index b413271..de26ba1 100644
--- a/src/ntqqapi/api/msg.ts
+++ b/src/ntqqapi/api/msg.ts
@@ -208,8 +208,9 @@ export class NTQQMsgApi {
   }
 
   static async multiForwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise<RawMessage> {
-    const msgInfos = msgIds.map(async id => {
-      return { msgId: id, senderShowName: await getSelfNick() }
+    const senderShowName = await getSelfNick()
+    const msgInfos = msgIds.map(id => {
+      return { msgId: id, senderShowName }
     })
     const selfUid = getSelfUid()
     let data = await NTEventDispatch.CallNormalEvent<