2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added ability to show song cover in HistoryView and Overview::Layout.

This commit is contained in:
23rd
2021-01-09 22:52:55 +03:00
parent a483eb98a1
commit 8fffe7d128
7 changed files with 93 additions and 18 deletions

View File

@@ -1488,6 +1488,10 @@ bool DocumentData::isSong() const {
return (type == SongDocument);
}
bool DocumentData::isSongWithCover() const {
return isSong() && hasThumbnail();
}
bool DocumentData::isAudioFile() const {
if (isVoiceMessage()) {
return false;