mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +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 {
|
||||
if e, ok := elem.(*ShortVideoElement); ok {
|
||||
packed := e.Pack()
|
||||
if len(elems) > 1 {
|
||||
r = append(r, packed[1])
|
||||
} else {
|
||||
r = append(r, packed...)
|
||||
}
|
||||
continue
|
||||
r = append(r, e.Pack()...)
|
||||
break
|
||||
}
|
||||
if e, ok := elem.(IRichMessageElement); ok {
|
||||
r = append(r, e.Pack()...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user