1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

fix event flow panic

This commit is contained in:
Mrs4s 2022-02-09 17:25:29 +08:00
parent 8258176fba
commit 5d071b034c
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -52,7 +52,7 @@ func decodeGuildEventFlowPacket(c *QQClient, _ *network.IncomingPacketInfo, payl
if m.Head.ContentHead.GetType() == 3841 { if m.Head.ContentHead.GetType() == 3841 {
// todo: 回头 event flow 的处理移出去重构下逻辑, 先暂时这样方便改 // todo: 回头 event flow 的处理移出去重构下逻辑, 先暂时这样方便改
var common *msg.CommonElem var common *msg.CommonElem
if m.Body != nil { if m.Body != nil && m.Body.RichText != nil {
for _, e := range m.Body.RichText.Elems { for _, e := range m.Body.RichText.Elems {
if e.CommonElem != nil { if e.CommonElem != nil {
common = e.CommonElem common = e.CommonElem