Skip to content
Snippets Groups Projects
Verified Commit 3d2f5033 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Add workaround for stickers not showing on iOS

parent c2e777f3
No related branches found
No related tags found
No related merge requests found
Pipeline #1629 passed
......@@ -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()});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment