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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user