mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
fix pc client decode error.
This commit is contained in:
parent
5403859a78
commit
fb15970f26
@ -296,13 +296,8 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
|
|||||||
}
|
}
|
||||||
for _, elem := range elems {
|
for _, elem := range elems {
|
||||||
if e, ok := elem.(*ShortVideoElement); ok {
|
if e, ok := elem.(*ShortVideoElement); ok {
|
||||||
packed := e.Pack()
|
r = append(r, e.Pack()...)
|
||||||
if len(elems) > 1 {
|
break
|
||||||
r = append(r, packed[1])
|
|
||||||
} else {
|
|
||||||
r = append(r, packed...)
|
|
||||||
}
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
if e, ok := elem.(IRichMessageElement); ok {
|
if e, ok := elem.(IRichMessageElement); ok {
|
||||||
r = append(r, e.Pack()...)
|
r = append(r, e.Pack()...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user