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
@@ -132,7 +132,7 @@ void Authorizations::reload() {
}) | ranges::to<List>;
_listChanges.fire({});
});
}).fail([=](const MTP::Error &error) {
}).fail([=] {
_requestId = 0;
}).send();
}
@@ -196,7 +196,7 @@ void Authorizations::updateTTL(int days) {
MTP_int(days)
)).done([=](const MTPBool &result) {
_ttlRequestId = 0;
}).fail([=](const MTP::Error &result) {
}).fail([=] {
_ttlRequestId = 0;
}).send();
_ttlDays = days;
@@ -218,7 +218,7 @@ void Authorizations::toggleCallsDisabled(uint64 hash, bool disabled) {
MTP_bool(disabled)
)).done([=](const MTPBool &) {
_toggleCallsDisabledRequests.remove(hash);
}).fail([=](const MTP::Error &) {
}).fail([=] {
_toggleCallsDisabledRequests.remove(hash);
}).send();
_toggleCallsDisabledRequests.emplace(hash, id);