mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
This commit is contained in:
@@ -1482,7 +1482,7 @@ bool DocumentData::isAudioFile() const {
|
||||
}
|
||||
const auto left = _mimeString.midRef(prefix.size()).toString();
|
||||
const auto types = { qstr("x-wav"), qstr("wav"), qstr("mp4") };
|
||||
return ranges::find(types, left) != end(types);
|
||||
return ranges::contains(types, left);
|
||||
}
|
||||
|
||||
bool DocumentData::isSharedMediaMusic() const {
|
||||
|
Reference in New Issue
Block a user