2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Updated TDesktop sources to 3.4.3

This commit is contained in:
RadRussianRus
2022-01-09 03:19:11 +03:00
536 changed files with 8164 additions and 36653 deletions

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 {
@@ -1337,7 +1340,7 @@ bool DocumentData::isSongWithCover() const {
}
bool DocumentData::isAudioFile() const {
if (isVoiceMessage()) {
if (isVoiceMessage() || isVideoFile()) {
return false;
} else if (isSong()) {
return true;