From edef400f30ccc8199d7276d78ccdf4c79a68c3a8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 26 May 2026 12:43:59 +0400 Subject: [PATCH] Fix never ending download progress in webapps. --- Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }