Skip to content

Commit

Permalink
fix pc client decode error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Jan 8, 2021
1 parent 5403859 commit fb15970
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()...)
Expand Down

0 comments on commit fb15970

Please sign in to comment.