diff --git a/coolq/bot.go b/coolq/bot.go index c5e725c..1f9306a 100644 --- a/coolq/bot.go +++ b/coolq/bot.go @@ -449,7 +449,7 @@ func (bot *CQBot) InsertPrivateMessage(m *message.PrivateMessage) int32 { msg.QuotedInfo = &db.QuotedInfo{ PrevID: encodeMessageID(reply.Sender, reply.ReplySeq), PrevGlobalID: db.ToGlobalID(reply.Sender, reply.ReplySeq), - QuotedContent: ToMessageContent(m.Elements), + QuotedContent: ToMessageContent(reply.Elements), } } if err := db.InsertPrivateMessage(msg); err != nil {