Correctly cancel username check request.

This commit is contained in:
John Preston 2022-08-10 16:11:51 +03:00
parent 7733e3350d
commit d2e1517e7a
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ void SetupChannelBox::handleChange() {
void SetupChannelBox::check() {
if (_checkRequestId) {
_channel->session().api().request(_checkRequestId).cancel();
_api.request(_checkRequestId).cancel();
}
const auto link = _link->text().trimmed();
if (link.size() >= Ui::EditPeer::kMinUsernameLength) {