mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-15 14:26:04 +00:00
Add saving of shared contacts vcards in export.
This commit is contained in:
@@ -513,15 +513,18 @@ QByteArray SerializeMessage(
|
||||
push("height", data.height);
|
||||
}
|
||||
pushTTL();
|
||||
}, [&](const ContactInfo &data) {
|
||||
}, [&](const SharedContact &data) {
|
||||
pushBare("contact_information", SerializeObject(context, {
|
||||
{ "first_name", SerializeString(data.firstName) },
|
||||
{ "last_name", SerializeString(data.lastName) },
|
||||
{ "first_name", SerializeString(data.info.firstName) },
|
||||
{ "last_name", SerializeString(data.info.lastName) },
|
||||
{
|
||||
"phone_number",
|
||||
SerializeString(FormatPhoneNumber(data.phoneNumber))
|
||||
},
|
||||
SerializeString(FormatPhoneNumber(data.info.phoneNumber))
|
||||
}
|
||||
}));
|
||||
if (!data.vcard.content.isEmpty()) {
|
||||
pushPath(data.vcard, "contact_vcard");
|
||||
}
|
||||
}, [&](const GeoPoint &data) {
|
||||
pushBare(
|
||||
"location_information",
|
||||
|
Reference in New Issue
Block a user