diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index d1fbc143d..4ce0bd8b7 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1636,12 +1636,15 @@ void MainWidget::documentLoadFailed(FileLoader *loader, bool started) { if (document) document->save(failedFileName); }))); } else { - Ui::show(Box(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] { - Global::SetDownloadPath(QString()); - Global::SetDownloadPathBookmark(QByteArray()); - Ui::show(Box()); - Global::RefDownloadPathChanged().notify(); - }))); + // Sometimes we have LOCATION_INVALID error in documents / stickers. + // Sometimes FILE_REFERENCE_EXPIRED could not be handled. + // + //Ui::show(Box(lang(lng_download_path_failed), lang(lng_download_path_settings), crl::guard(this, [=] { + // Global::SetDownloadPath(QString()); + // Global::SetDownloadPathBookmark(QByteArray()); + // Ui::show(Box()); + // Global::RefDownloadPathChanged().notify(); + //}))); } if (document) {