tdweb: fix readFilePart count.
GitOrigin-RevId: e1c2ff700bacd5e8c351a1a948ed5369cc2d76a9
This commit is contained in:
parent
2cd73ca028
commit
178211e069
@ -589,7 +589,7 @@ class FileManager {
|
|||||||
'@type': 'readFilePart',
|
'@type': 'readFilePart',
|
||||||
path: info.file.local.path,
|
path: info.file.local.path,
|
||||||
offset: offset,
|
offset: offset,
|
||||||
size: size
|
count: size
|
||||||
});
|
});
|
||||||
res.data = new Blob([res.data]);
|
res.data = new Blob([res.data]);
|
||||||
res.transaction_id = -2;
|
res.transaction_id = -2;
|
||||||
@ -632,7 +632,7 @@ class FileManager {
|
|||||||
this.lru.onUsed(info.node);
|
this.lru.onUsed(info.node);
|
||||||
}
|
}
|
||||||
query.offset = query.offset || 0;
|
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);
|
const response = await this.doLoad(info, query.offset, query.size);
|
||||||
return {
|
return {
|
||||||
'@type': 'filePart',
|
'@type': 'filePart',
|
||||||
|
Reference in New Issue
Block a user