2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Use getters in MTP classes.

This commit is contained in:
John Preston
2019-07-05 15:38:38 +02:00
parent 3ca28c0cf9
commit 567bf60644
100 changed files with 2807 additions and 2672 deletions

View File

@@ -246,7 +246,7 @@ void BoxController::loadMoreRows() {
_loadRequestId = request(MTPmessages_Search(
MTP_flags(0),
MTP_inputPeerEmpty(),
MTP_string(QString()),
MTP_string(),
MTP_inputUserEmpty(),
MTP_inputMessagesFilterPhoneCalls(MTP_flags(0)),
MTP_int(0),
@@ -261,9 +261,9 @@ void BoxController::loadMoreRows() {
_loadRequestId = 0;
auto handleResult = [&](auto &data) {
Auth().data().processUsers(data.vusers);
Auth().data().processChats(data.vchats);
receivedCalls(data.vmessages.v);
Auth().data().processUsers(data.vusers());
Auth().data().processChats(data.vchats());
receivedCalls(data.vmessages().v);
};
switch (result.type()) {