From b2f29b674dd1435b41f9e4363ef610592d13faa2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 Dec 2017 16:43:39 +0400 Subject: [PATCH] Send audio files with correct attributes. Regression was introduced in 8b69e6ab99. Fixes #4163. --- Telegram/SourceFiles/storage/localimageloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/storage/localimageloader.cpp b/Telegram/SourceFiles/storage/localimageloader.cpp index ca4fc038e..e2528adf1 100644 --- a/Telegram/SourceFiles/storage/localimageloader.cpp +++ b/Telegram/SourceFiles/storage/localimageloader.cpp @@ -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;