1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix reply image.

This commit is contained in:
Mrs4s 2021-02-02 07:49:41 +08:00
parent a24c4fbd90
commit c69e578d08

View File

@ -294,6 +294,11 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
TroopName: []byte{},
},
})
if len(elems) > 1 {
if elems[0].Type() == Image || elems[1].Type() == Image {
r = append(r, &msg.Elem{Text: &msg.Text{Str: proto.String(" ")}})
}
}
}
}
for _, elem := range elems {