From 5400583f5c00eb9f01ab53ab8709e3843fc72f32 Mon Sep 17 00:00:00 2001 From: WindowsSov8forUs Date: Mon, 8 Jul 2024 00:04:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=84=E8=8C=83=E6=94=B6=E5=88=B0?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=B6=88=E6=81=AF=E6=97=B6=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- processor/message_processor.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/processor/message_processor.go b/processor/message_processor.go index 536c08b..11ab602 100644 --- a/processor/message_processor.go +++ b/processor/message_processor.go @@ -542,13 +542,9 @@ func ConvertToMessageContent(data interface{}) string { // 添加消息回复 if msg.MessageReference != nil { - message := satoriMessage.MessageElementMessage{ - Id: msg.MessageReference.MessageID, - } quote := satoriMessage.MessageElementQuote{ - ChildrenMessageElement: &satoriMessage.ChildrenMessageElement{}, + Id: msg.MessageReference.MessageID, } - quote.ChildrenMessageElement = quote.SetChildren([]satoriMessage.MessageElement{&message}) // 添加为第一个元素 messageSegments = append([]satoriMessage.MessageElement{"e}, messageSegments...)