Fix file upload cancelling.

Fixes #17408.
This commit is contained in:
John Preston 2021-12-15 19:38:33 +04:00
parent dd92f7fb9d
commit 2a0babe5ab

View File

@ -1221,7 +1221,10 @@ bool DocumentData::hasWebLocation() const {
}
bool DocumentData::isNull() const {
return !hasRemoteLocation() && !hasWebLocation() && _url.isEmpty();
return !hasRemoteLocation()
&& !hasWebLocation()
&& _url.isEmpty()
&& !uploading();
}
MTPInputDocument DocumentData::mtpInput() const {