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

fix(coolq): null message

This commit is contained in:
wdvxdr 2021-04-08 17:32:13 +08:00
parent 6fecede756
commit a0cb34dc7a
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

View File

@ -293,7 +293,9 @@ func ToArrayMessage(e []message.IMessageElement, id int64, isRaw ...bool) (r []M
default:
continue
}
r = append(r, m)
if m != nil {
r = append(r, m)
}
}
return
}