diff --git a/Telegram/SourceFiles/iv/iv_controller.cpp b/Telegram/SourceFiles/iv/iv_controller.cpp index c62debebf..9fd75f2c4 100644 --- a/Telegram/SourceFiles/iv/iv_controller.cpp +++ b/Telegram/SourceFiles/iv/iv_controller.cpp @@ -41,6 +41,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "base/call_delayed.h" +// AyuGram includes +#include "ayu/features/streamer_mode/streamer_mode.h" + + namespace Iv { namespace { @@ -393,6 +397,11 @@ void Controller::createWebview(const QString &dataPath) { Expects(!_webview); const auto window = _window.get(); + + if (AyuFeatures::StreamerMode::isEnabled()) { + AyuFeatures::StreamerMode::hideWidgetWindow(window); + } + _webview = std::make_unique( _container, Webview::WindowConfig{