From 9f11c783eb236a563e7b49cc24ce27728b64e025 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 29 Jun 2022 15:30:42 +0300 Subject: [PATCH] Fixed scheduling of recorded voice messages. --- .../history/view/controls/history_view_voice_record_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp index cddd95f0d..b05a15383 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp @@ -1673,7 +1673,7 @@ void VoiceRecordBar::installListenStateFilter() { void VoiceRecordBar::showDiscardBox( Fn &&callback, anim::type animated) { - if (!isActive()) { + if (!isActive() || _showAnimation.animating()) { return; } auto sure = [=, callback = std::move(callback)](Fn &&close) {