diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index 45201539d..f4ff376f9 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -966,17 +966,15 @@ static int merge_choose_generate_location(const unique_ptrconversion_, "#mtime#"); bool y_has_mtime = begins_with(y->conversion_, "#mtime#"); if (x_has_mtime != y_has_mtime) { return x_has_mtime ? 0 : 1; } - if (x->conversion_ != y->conversion) { - return x->conversion_ >= y->conversion_ - ? 0 - : 1; // the bigger conversion, the bigger mtime or at least more stable choise - } + return x->conversion_ >= y->conversion_ + ? 0 + : 1; // the bigger conversion, the bigger mtime or at least more stable choise } return 2; }