From 3cf47884b3184bebb1c900d43e1614c5a39f4951 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sat, 11 Nov 2023 18:55:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=95=E7=94=A8=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer.ts b/src/renderer.ts index 447ce9b..90b2baa 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -138,7 +138,7 @@ async function forwardMessage(message: MessageElement) { message_data["data"]["file"] = element.picElement.sourcePath } else if (element.replyElement) { message_data["type"] = "reply" - message_data["data"]["reply"] = element.replyElement.sourceMsgIdInRecords + message_data["data"]["id"] = msgHistory.find(msg => msg.raw.msgSeq == element.replyElement.replayMsgSeq)?.raw.msgId } onebot_message_data.message.push(message_data) } diff --git a/src/types.ts b/src/types.ts index 26fbaf7..f9616d6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -46,7 +46,7 @@ export type MessageElement = { senderUid: string, // 原消息发送者QQ号 sourceMsgIsIncPic: boolean; // 原消息是否有图片 sourceMsgText: string; - sourceMsgIdInRecords: string; // 原消息id + replayMsgSeq: string; // 源消息的msgSeq,可以通过这个找到源消息的msgId }, textElement: { atType: AtType