Don't try to resolve empty username.

This commit is contained in:
John Preston 2022-03-30 10:55:01 +04:00
parent 1c1e67abe3
commit 1ffd6d54a0
1 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,9 @@ AttachWebView::~AttachWebView() {
void AttachWebView::request(
not_null<PeerData*> peer,
const QString &botUsername) {
if (botUsername.isEmpty()) {
return;
}
const auto username = _bot ? _bot->username : _botUsername;
if (_peer == peer && username.toLower() == botUsername.toLower()) {
if (_panel) {