diff --git a/td/telegram/files/FileDownloader.cpp b/td/telegram/files/FileDownloader.cpp index 891f44f22..f83ca503e 100644 --- a/td/telegram/files/FileDownloader.cpp +++ b/td/telegram/files/FileDownloader.cpp @@ -38,7 +38,7 @@ FileDownloader::FileDownloader(const FullRemoteFileLocation &remote, const Local , callback_(std::move(callback)) , is_small_(is_small) , search_file_(search_file) { - if (!encryption_key.is_secret()) { + if (encryption_key.is_secret()) { set_ordered_flag(true); } }