From 300a60fe9ef68e1dc23d3c4e538758a11e362774 Mon Sep 17 00:00:00 2001 From: sora233 Date: Mon, 15 Nov 2021 14:01:55 +0800 Subject: [PATCH] fix private reply message --- coolq/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/bot.go b/coolq/bot.go index 4a9f702..886d17b 100644 --- a/coolq/bot.go +++ b/coolq/bot.go @@ -450,7 +450,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 {