From e60cf58d6848d3bf7edc406aa60c1c6f6a2e839b Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 27 Jan 2020 14:39:19 +0300 Subject: [PATCH] Reget profile photo on LOCATION_INVALID. GitOrigin-RevId: ca1b929d21537a403d1893bcb79c1a7a61694ad7 --- td/telegram/files/FileManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index c8fb0e1e..9a5e07d2 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -3522,7 +3522,8 @@ void FileManager::on_error_impl(FileNodePtr node, Query::Type type, bool was_act node->set_generate_location(nullptr); } - if (status.message() == "FILE_ID_INVALID" && FileView(node).may_reload_photo()) { + if ((status.message() == "FILE_ID_INVALID" || status.message() == "LOCATION_INVALID") && + FileView(node).may_reload_photo()) { node->need_reload_photo_ = true; run_download(node); return;