From f24e3c61921f1c1b46374a05669aa98d484ca930 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 23 May 2015 18:57:16 +0300 Subject: [PATCH] fixed audio mark as read after download --- Telegram/SourceFiles/mainwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index cc776c9ac..1db9d0e5e 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1369,6 +1369,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) { audioVoice()->pauseresume(); } else { audioVoice()->play(audio); + if (App::main()) App::main()->audioMarkRead(audio); } } else { QPoint pos(QCursor::pos()); @@ -1377,6 +1378,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) { } else { psOpenFile(already, audio->openOnSave < 0); } + if (App::main()) App::main()->audioMarkRead(audio); } } }