diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 23f9067582..e183be875b 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -1319,9 +1319,7 @@ void Panel::setupDownloadsProgress( state->animation.start(0.); } toggle(true); - } else if ((state->progress.total && !progress.total) - || (state->progress.ready < state->progress.total - && progress.ready == progress.total)) { + } else if (state->shown && !progress.loading) { state->animation.update(1., false, crl::now()); toggle(false); }