mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-14 11:11:43 +00:00
Send audio files with correct attributes.
Regression was introduced in 8b69e6ab99
.
Fixes #4163.
This commit is contained in:
parent
574f4a73cb
commit
b2f29b674d
@ -251,7 +251,7 @@ bool FileLoadTask::CheckForSong(const QString &filepath, const QByteArray &conte
|
||||
if (!CheckMimeOrExtensions(filepath, result->filemime, mimes, extensions)) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
auto media = Media::Player::PrepareForSending(filepath, content);
|
||||
if (media.duration < 0) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user