diff --git a/Telegram/SourceFiles/payments/ui/payments_panel.cpp b/Telegram/SourceFiles/payments/ui/payments_panel.cpp index bc2817d52b..a672f81fcd 100644 --- a/Telegram/SourceFiles/payments/ui/payments_panel.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_panel.cpp @@ -619,6 +619,10 @@ postEvent: function(eventType, eventData) { } };)"); + if (!_webview) { + return false; + } + setupProgressGeometry(); return true; diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index c34db91649..61ed29c598 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -703,6 +703,10 @@ postEvent: function(eventType, eventData) { } };)"); + if (!_webview) { + return false; + } + setupProgressGeometry(); return true;