mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
This commit is contained in:
@@ -1099,8 +1099,9 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
|
||||
if (audio->loader) {
|
||||
if (audio->loader->done()) {
|
||||
audio->finish();
|
||||
bool mp3 = (audio->mime == QLatin1String("audio/mp3"));
|
||||
QString already = audio->already();
|
||||
bool play = audio->openOnSave > 0 && audioVoice();
|
||||
bool play = !mp3 && audio->openOnSave > 0 && audioVoice();
|
||||
if ((!already.isEmpty() && audio->openOnSave) || (!audio->data.isEmpty() && play)) {
|
||||
if (play) {
|
||||
AudioData *playing = 0;
|
||||
|
Reference in New Issue
Block a user