summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-18 18:16:29 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-18 18:16:29 +0200
commit3d2f503305c6fc26dcc06cdfb790b9fb9574bad9 (patch)
tree31da80b53ec0ce66a76a750752b544102d4b4440
parentUpdate translations (diff)
downloadnheko-3d2f503305c6fc26dcc06cdfb790b9fb9574bad9.tar.xz
Add workaround for stickers not showing on iOS
see: https://github.com/vector-im/element-ios/issues/2353
-rw-r--r--src/timeline/InputBar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index f17081e5..c82099f0 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -515,6 +515,13 @@ InputBar::sticker(CombinedImagePackModel *model, int row) sticker.url = img.url; sticker.body = img.body; + // workaround for https://github.com/vector-im/element-ios/issues/2353 + sticker.info.thumbnail_url = sticker.url; + sticker.info.thumbnail_info.mimetype = sticker.info.mimetype; + sticker.info.thumbnail_info.size = sticker.info.size; + sticker.info.thumbnail_info.h = sticker.info.h; + sticker.info.thumbnail_info.w = sticker.info.w; + if (!room->reply().isEmpty()) { sticker.relations.relations.push_back( {mtx::common::RelationType::InReplyTo, room->reply().toStdString()});