mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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();
|
||||
}, [&](const Document &data) {
|
||||
pushPath(data.file, "file");
|
||||
push("file_name", data.name);
|
||||
if (data.thumb.width > 0) {
|
||||
pushPath(data.thumb.file, "thumbnail");
|
||||
}
|
||||
|
@ -675,9 +676,7 @@ QByteArray SerializeMessage(
|
|||
push("performer", data.songPerformer);
|
||||
push("title", data.songTitle);
|
||||
}
|
||||
if (!data.isSticker) {
|
||||
push("mime_type", data.mime);
|
||||
}
|
||||
push("mime_type", data.mime);
|
||||
if (data.duration) {
|
||||
push("duration_seconds", data.duration);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue