summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-22 19:45:25 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-22 19:45:25 +0100
commit637db55e08c98c4f408efda0f739ed1f377eb7b3 (patch)
treeb62184c9e4f57fdc0abf4de00b4070bc786d573a /src/timeline/InputBar.cpp
parentAdd a default filename for clipboard pastes again (diff)
downloadnheko-637db55e08c98c4f408efda0f739ed1f377eb7b3.tar.xz
Default body to shortcode if unset and sending sticker
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 7a7d22b7..a82796a8 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -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;