2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Rename RPCError to MTP::Error.

This commit is contained in:
John Preston
2021-03-12 16:48:00 +04:00
parent 5794679277
commit 68b0a85369
130 changed files with 609 additions and 594 deletions

View File

@@ -813,7 +813,7 @@ void PeerMenuCreatePoll(
const auto api = &peer->session().api();
api->createPoll(result.poll, action, crl::guard(box, [=] {
box->closeBox();
}), crl::guard(box, [=](const RPCError &error) {
}), crl::guard(box, [=](const MTP::Error &error) {
*lock = false;
box->submitFailed(tr::lng_attach_failed(tr::now));
}));
@@ -1036,7 +1036,7 @@ QPointer<Ui::RpWidget> ShowSendNowMessagesBox(
MTP_vector<MTPint>(ids)
)).done([=](const MTPUpdates &result) {
session->api().applyUpdates(result);
}).fail([=](const RPCError &error) {
}).fail([=](const MTP::Error &error) {
session->api().sendMessageFail(error, history->peer);
}).send();
if (callback) {