Remove unnecessary UpdateFile.

GitOrigin-RevId: 06a7365eb01793df4ed04f2cf111582d9be7d17f
This commit is contained in:
levlam 2019-01-25 17:29:21 +03:00
parent ce8781a2aa
commit bc6517b094

View File

@ -243,7 +243,7 @@ void FileNode::set_download_priority(int8 priority) {
}
void FileNode::set_upload_priority(int8 priority) {
if ((upload_priority_ == 0) != (priority == 0)) {
if (remote_.type() != RemoteFileLocation::Type::Full && (upload_priority_ == 0) != (priority == 0)) {
VLOG(update_file) << "File " << main_file_id_ << " has changed upload priority to " << priority;
on_info_changed();
}