2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -1335,7 +1335,7 @@ void MainWidget::viewsIncrement() {
MTP_bool(true)
)).done([=](const MTPmessages_MessageViews &result, mtpRequestId requestId) {
viewsIncrementDone(ids, result, requestId);
}).fail([=](const RPCError &error, mtpRequestId requestId) {
}).fail([=](const MTP::Error &error, mtpRequestId requestId) {
viewsIncrementFail(error, requestId);
}).afterDelay(5).send();
@@ -1382,7 +1382,7 @@ void MainWidget::viewsIncrementDone(
}
}
void MainWidget::viewsIncrementFail(const RPCError &error, mtpRequestId requestId) {
void MainWidget::viewsIncrementFail(const MTP::Error &error, mtpRequestId requestId) {
for (auto i = _viewsIncrementRequests.begin(); i != _viewsIncrementRequests.cend(); ++i) {
if (i->second == requestId) {
_viewsIncrementRequests.erase(i);