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

fix message history media.

This commit is contained in:
Mrs4s 2021-02-02 07:53:41 +08:00
parent 08dea6dcf1
commit 08567ec240

View File

@ -867,6 +867,7 @@ func (bot *CQBot) CQGetGroupMessageHistory(groupId int64, seq int64) MSG {
var ms []MSG var ms []MSG
for _, m := range msg { for _, m := range msg {
id := m.Id id := m.Id
bot.checkMedia(m.Elements)
if bot.db != nil { if bot.db != nil {
id = bot.InsertGroupMessage(m) id = bot.InsertGroupMessage(m)
} }