Skip to content

Commit

Permalink
Add .opus and .oga files as song formats
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorienXP authored and john-preston committed Apr 21, 2020
1 parent 82e835f commit 85fcec2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Telegram/SourceFiles/storage/localimageloader.cpp
Expand Up @@ -552,13 +552,16 @@ bool FileLoadTask::CheckForSong(
qstr("audio/aac"),
qstr("audio/ogg"),
qstr("audio/flac"),
qstr("audio/opus"),
};
static const auto extensions = {
qstr(".mp3"),
qstr(".m4a"),
qstr(".aac"),
qstr(".ogg"),
qstr(".flac"),
qstr(".opus"),
qstr(".oga"),
};
if (!filepath.isEmpty()
&& !CheckMimeOrExtensions(
Expand Down

0 comments on commit 85fcec2

Please sign in to comment.