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