Reget profile photo on LOCATION_INVALID.

GitOrigin-RevId: ca1b929d21537a403d1893bcb79c1a7a61694ad7
This commit is contained in:
levlam 2020-01-27 14:39:19 +03:00
parent a89654c3a9
commit e60cf58d68

View File

@ -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;