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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user