mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Always export file_name in json.
This commit is contained in:
parent
18f5521be5
commit
dc438cff23
1 changed files with 2 additions and 3 deletions
|
@ -653,6 +653,7 @@ QByteArray SerializeMessage(
|
||||||
pushTTL();
|
pushTTL();
|
||||||
}, [&](const Document &data) {
|
}, [&](const Document &data) {
|
||||||
pushPath(data.file, "file");
|
pushPath(data.file, "file");
|
||||||
|
push("file_name", data.name);
|
||||||
if (data.thumb.width > 0) {
|
if (data.thumb.width > 0) {
|
||||||
pushPath(data.thumb.file, "thumbnail");
|
pushPath(data.thumb.file, "thumbnail");
|
||||||
}
|
}
|
||||||
|
@ -675,9 +676,7 @@ QByteArray SerializeMessage(
|
||||||
push("performer", data.songPerformer);
|
push("performer", data.songPerformer);
|
||||||
push("title", data.songTitle);
|
push("title", data.songTitle);
|
||||||
}
|
}
|
||||||
if (!data.isSticker) {
|
push("mime_type", data.mime);
|
||||||
push("mime_type", data.mime);
|
|
||||||
}
|
|
||||||
if (data.duration) {
|
if (data.duration) {
|
||||||
push("duration_seconds", data.duration);
|
push("duration_seconds", data.duration);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue