mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Don't try to resolve empty username.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user