Use shortcode as a fallback for body when sending stickers

(cherry picked from commit 50551541ed)
This commit is contained in:
q234 rty
2023-09-09 16:25:55 +08:00
committed by Tobias Fella
parent 161412cbcf
commit 0408956364

View File

@@ -109,7 +109,7 @@ void StickerModel::setRoom(NeoChatRoom *room)
void StickerModel::postSticker(int index)
{
const auto &image = m_images[index];
const auto &body = image.body ? *image.body : QString();
const auto &body = image.body ? *image.body : image.shortcode;
QJsonObject infoJson;
if (image.info) {
infoJson["w"] = image.info->imageSize.width();