Default body to shortcode if unset and sending sticker
This commit is contained in:
parent
922c63ef27
commit
637db55e08
2 changed files with 7 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ InputBar::sticker(CombinedImagePackModel *model, int row)
|
|||
mtx::events::msg::StickerImage sticker{};
|
||||
sticker.info = img.info.value_or(mtx::common::ImageInfo{});
|
||||
sticker.url = img.url;
|
||||
sticker.body = img.body;
|
||||
sticker.body = img.body.empty() ? model->shortcodeAt(row).toStdString() : img.body;
|
||||
|
||||
// workaround for https://github.com/vector-im/element-ios/issues/2353
|
||||
sticker.info.thumbnail_url = sticker.url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue