Skip to content

Commit

Permalink
fix private reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sora233 committed Nov 15, 2021
1 parent 2395abe commit 300a60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coolq/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 300a60f

Please sign in to comment.