Fix grouping of music files / just files.

This commit is contained in:
John Preston
2020-10-19 13:25:28 +03:00
parent 0d37949e74
commit 012ebdd15e
7 changed files with 52 additions and 30 deletions
+1 -4
View File
@@ -1508,10 +1508,7 @@ bool DocumentData::isAudioFile() const {
}
bool DocumentData::isSharedMediaMusic() const {
if (const auto songData = song()) {
return (songData->duration > 0);
}
return false;
return isSong();
}
bool DocumentData::isVideoFile() const {