1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-08 04:55:55 +08:00

fix private reply message

This commit is contained in:
sora233 2021-11-15 14:01:55 +08:00
parent 2395abe783
commit 300a60fe9e

View File

@ -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 {