Add workaround for stickers not showing on iOS

see: https://github.com/vector-im/element-ios/issues/2353
pull/684/head
Nicolas Werner 3 years ago
parent c2e777f3e4
commit 3d2f503305
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 7
      src/timeline/InputBar.cpp

@ -515,6 +515,13 @@ InputBar::sticker(CombinedImagePackModel *model, int row)
sticker.url = img.url; sticker.url = img.url;
sticker.body = img.body; 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()) { if (!room->reply().isEmpty()) {
sticker.relations.relations.push_back( sticker.relations.relations.push_back(
{mtx::common::RelationType::InReplyTo, room->reply().toStdString()}); {mtx::common::RelationType::InReplyTo, room->reply().toStdString()});

Loading…
Cancel
Save