mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(
|
void AttachWebView::request(
|
||||||
not_null<PeerData*> peer,
|
not_null<PeerData*> peer,
|
||||||
const QString &botUsername) {
|
const QString &botUsername) {
|
||||||
|
if (botUsername.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto username = _bot ? _bot->username : _botUsername;
|
const auto username = _bot ? _bot->username : _botUsername;
|
||||||
if (_peer == peer && username.toLower() == botUsername.toLower()) {
|
if (_peer == peer && username.toLower() == botUsername.toLower()) {
|
||||||
if (_panel) {
|
if (_panel) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue