Add image info for stickers

Closes network/neochat#584
This commit is contained in:
James Graham
2024-04-09 18:54:59 +00:00
parent 1a96899336
commit 163b02f023
2 changed files with 27 additions and 2 deletions

View File

@@ -74,6 +74,9 @@ void ImagePackEventContent::fillJson(QJsonObject *o) const
}
imageJson["usage"_ls] = usageJson;
}
if (image.info.has_value()) {
imageJson["info"_ls] = Quotient::EventContent::toInfoJson(*image.info);
}
imagesJson[image.shortcode] = imageJson;
}
(*o)["images"_ls] = imagesJson;