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 { - 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<