fix decodeUpdateV2 bug
This commit is contained in:
parent
4db3439bb1
commit
6aea35246b
@ -125,7 +125,7 @@ export const decodeUpdate = (update) => decodeUpdateV2(update, UpdateDecoderV1)
|
|||||||
*/
|
*/
|
||||||
export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => {
|
export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => {
|
||||||
const structs = []
|
const structs = []
|
||||||
const updateDecoder = new UpdateDecoderV1(decoding.createDecoder(update))
|
const updateDecoder = new YDecoder(decoding.createDecoder(update))
|
||||||
const lazyDecoder = new LazyStructReader(updateDecoder, false)
|
const lazyDecoder = new LazyStructReader(updateDecoder, false)
|
||||||
for (let curr = lazyDecoder.curr; curr !== null; curr = lazyDecoder.next()) {
|
for (let curr = lazyDecoder.curr; curr !== null; curr = lazyDecoder.next()) {
|
||||||
structs.push(curr)
|
structs.push(curr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user