mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Don't try to resolve empty username.
This commit is contained in:
parent
1c1e67abe3
commit
1ffd6d54a0
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue