mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Correctly cancel username check request.
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user