2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

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

View File

@@ -1209,7 +1209,7 @@ void Call::finish(FinishType type, const MTPPhoneCallDiscardReason &reason) {
// updates being handled, but in a guarded way.
crl::on_main(weak, [=] { setState(finalState); });
session->api().applyUpdates(result);
}).fail(crl::guard(weak, [this, finalState](const MTP::Error &error) {
}).fail(crl::guard(weak, [this, finalState] {
setState(finalState);
})).send();
}