From 1ffd6d54a0b898f6d82d22c407012976d73ca36c Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 30 Mar 2022 10:55:01 +0400 Subject: [PATCH] Don't try to resolve empty username. --- Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp index 4b18e9725..aba0a7739 100644 --- a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp +++ b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp @@ -282,6 +282,9 @@ AttachWebView::~AttachWebView() { void AttachWebView::request( not_null peer, const QString &botUsername) { + if (botUsername.isEmpty()) { + return; + } const auto username = _bot ? _bot->username : _botUsername; if (_peer == peer && username.toLower() == botUsername.toLower()) { if (_panel) {