2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +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

@@ -553,7 +553,7 @@ void Controller::showEditLinkedChatBox() {
).done([=](const MTPmessages_Chats &result) {
_linkedChatsRequestId = 0;
const auto list = result.match([&](const auto &data) {
return data.vchats.v;
return data.vchats().v;
});
auto chats = std::vector<not_null<PeerData*>>();
chats.reserve(list.size());