Fix downlaoding of secure documents.
GitOrigin-RevId: 9884b4e6dbe669ba905e8f391f87a957e4928e53
This commit is contained in:
parent
9302481d93
commit
2face56d10
@ -2317,7 +2317,10 @@ void FileManager::on_partial_download(QueryId query_id, const PartialLocalFileLo
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (size != 0) {
|
if (size != 0) {
|
||||||
file_node->set_size(size);
|
FileView file_view(file_node);
|
||||||
|
if (!file_view.is_encrypted_secure()) {
|
||||||
|
file_node->set_size(size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
file_node->set_local_location(LocalFileLocation(partial_local), ready_size, -1, -1 /* TODO */);
|
file_node->set_local_location(LocalFileLocation(partial_local), ready_size, -1, -1 /* TODO */);
|
||||||
try_flush_node(file_node, "on_partial_download");
|
try_flush_node(file_node, "on_partial_download");
|
||||||
|
Reference in New Issue
Block a user