From 178211e06967553f1baab9c18d47716c9dbbc220 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 8 Apr 2020 00:59:55 +0300 Subject: [PATCH] tdweb: fix readFilePart count. GitOrigin-RevId: e1c2ff700bacd5e8c351a1a948ed5369cc2d76a9 --- example/web/tdweb/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/web/tdweb/src/index.js b/example/web/tdweb/src/index.js index 34a029289..b132cd0d3 100644 --- a/example/web/tdweb/src/index.js +++ b/example/web/tdweb/src/index.js @@ -589,7 +589,7 @@ class FileManager { '@type': 'readFilePart', path: info.file.local.path, offset: offset, - size: size + count: size }); res.data = new Blob([res.data]); res.transaction_id = -2; @@ -632,7 +632,7 @@ class FileManager { this.lru.onUsed(info.node); } query.offset = query.offset || 0; - query.size = query.size || 0; + query.size = query.count || query.size || 0; const response = await this.doLoad(info, query.offset, query.size); return { '@type': 'filePart',