tdweb: use unique_id instead of remote.id if possible.

GitOrigin-RevId: fee4ecb25cdc48aa950dfd4d699fe0e0cbea94b9
This commit is contained in:
levlam 2020-01-16 05:03:07 +03:00
parent 06eb99d4d0
commit 40b9ff17ec

View File

@ -981,7 +981,7 @@ class TdClient {
}
prepareFile(file) {
const pid = file.remote.id;
const pid = file.remote.unique_id ? file.remote.unique_id : file.remote.id;
if (!pid) {
return file;
}