From 37b8551760752a6a04f26b9fa0b81da4061ffa5c Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Feb 2021 17:35:52 +0400 Subject: [PATCH] Ignore 400: LOCATION_NOT_AVAILABLE in export. Fix #6807. --- Telegram/SourceFiles/export/export_api_wrap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp index b317617e0..c16fb12c9 100644 --- a/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp @@ -399,7 +399,8 @@ auto ApiWrap::fileRequest(const Data::FileLocation &location, int offset) { MTP_int(0), MTP_bytes())); } else if (result.type() == qstr("LOCATION_INVALID") - || result.type() == qstr("VERSION_INVALID")) { + || result.type() == qstr("VERSION_INVALID") + || result.type() == qstr("LOCATION_NOT_AVAILABLE")) { filePartUnavailable(); } else if (result.code() == 400 && result.type().startsWith(qstr("FILE_REFERENCE_"))) {