tdweb: 1.4.1

GitOrigin-RevId: 3ed9492f517550420100de7ed5e9444ba88a6f18
This commit is contained in:
Arseny Smirnov 2019-06-14 21:03:19 +02:00
parent 97c50d5e58
commit 03f5dc551f
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "tdweb",
"version": "1.4.0",
"version": "1.4.1",
"description": "Javascript interface for TDLib (telegram library)",
"main": "dist/tdweb.js",
"repository": {

View File

@ -473,7 +473,9 @@ class FileManager {
registerFile(file) {
if (file.idb_key || file.arr) {
file.is_downloading_completed = true;
file.local.is_downloading_completed = true;
} else {
file.local.is_downloading_completed = false;
}
let info = {};
const cached_info = this.cache.get(file.id);
@ -484,8 +486,7 @@ class FileManager {
}
if (file.idb_key) {
info.idb_key = file.idb_key;
// TODO: uncomment after supported in telegram-react
//delete file.idb_key;
delete file.idb_key;
} else {
delete info.idb_key;
}
@ -573,7 +574,6 @@ class FileManager {
throw new Error('File is not loaded');
}
async doLoad(info, offset, size) {
log.error('LOAD', info);
if (!info.arr && !info.idb_key && info.file.local.path) {
try {
const count = await this.client.sendInternal({