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

Attempt to fix a weird assertion violation.

This commit is contained in:
John Preston
2021-12-31 01:20:28 +03:00
parent 72df3a8f91
commit 5bb90679a8

View File

@@ -1336,7 +1336,7 @@ bool DocumentData::isSongWithCover() const {
}
bool DocumentData::isAudioFile() const {
if (isVoiceMessage()) {
if (isVoiceMessage() || isVideoFile()) {
return false;
} else if (isSong()) {
return true;