Skip to content

Commit

Permalink
fix: 规范收到回复消息时行为
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Jul 7, 2024
1 parent e7fa7f5 commit 5400583
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions processor/message_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{&quote}, messageSegments...)
Expand Down

0 comments on commit 5400583

Please sign in to comment.