Removed unused MTP::Error from callbacks on fail.

This commit is contained in:
23rd
2021-11-26 23:46:53 +03:00
committed by John Preston
parent 287a35d208
commit 3647241f71
62 changed files with 158 additions and 182 deletions
@@ -36,17 +36,17 @@ void CloudPassword::reload() {
}
_stateChanges.fire_copy(*_state);
});
}).fail([=](const MTP::Error &error) {
}).fail([=] {
_requestId = 0;
}).send();
}
void CloudPassword::clearUnconfirmedPassword() {
_requestId = _api.request(MTPaccount_CancelPasswordEmail(
)).done([=](const MTPBool &result) {
)).done([=] {
_requestId = 0;
reload();
}).fail([=](const MTP::Error &error) {
}).fail([=] {
_requestId = 0;
reload();
}).send();