mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Correctly cancel username check request.
This commit is contained in:
parent
7733e3350d
commit
d2e1517e7a
1 changed files with 1 additions and 1 deletions
|
@ -1164,7 +1164,7 @@ void SetupChannelBox::handleChange() {
|
||||||
|
|
||||||
void SetupChannelBox::check() {
|
void SetupChannelBox::check() {
|
||||||
if (_checkRequestId) {
|
if (_checkRequestId) {
|
||||||
_channel->session().api().request(_checkRequestId).cancel();
|
_api.request(_checkRequestId).cancel();
|
||||||
}
|
}
|
||||||
const auto link = _link->text().trimmed();
|
const auto link = _link->text().trimmed();
|
||||||
if (link.size() >= Ui::EditPeer::kMinUsernameLength) {
|
if (link.size() >= Ui::EditPeer::kMinUsernameLength) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue