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 6bcca88448..05226bce05 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 @@ -1218,19 +1218,14 @@ void VoiceRecordBar::startRecording() { return; } - const auto shown = _recordingLifetime.make_state(false); + _lockShowing = true; + startRedCircleAnimation(); _recording = true; _controller->widget()->setInnerFocus(); instance()->start(); instance()->updated( ) | rpl::start_with_next_error([=](const Update &update) { - if (!(*shown) && !_showAnimation.animating()) { - // Show the lock widget after the first successful update. - *shown = true; - _lockShowing = true; - startRedCircleAnimation(); - } recordUpdated(update.level, update.samples); }, [=] { stop(false);