mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Simplified extracting of data from some MTP* responses.
This commit is contained in:
@@ -379,10 +379,7 @@ void AddContactBox::save() {
|
||||
MTP_string(lastName)))
|
||||
)).done(crl::guard(weak, [=](
|
||||
const MTPcontacts_ImportedContacts &result) {
|
||||
const auto &data = result.match([](
|
||||
const auto &data) -> const MTPDcontacts_importedContacts& {
|
||||
return data;
|
||||
});
|
||||
const auto &data = result.data();
|
||||
session->data().processUsers(data.vusers());
|
||||
if (!weak) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user