Ignore 400: LOCATION_NOT_AVAILABLE in export.

Fix #6807.
This commit is contained in:
John Preston 2021-02-04 17:35:52 +04:00
parent 0cd8453b00
commit 37b8551760
1 changed files with 2 additions and 1 deletions

View File

@ -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_"))) {