mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Add workaround for stickers not showing on iOS
see: https://github.com/vector-im/element-ios/issues/2353
This commit is contained in:
parent
c2e777f3e4
commit
3d2f503305
1 changed files with 7 additions and 0 deletions
|
@ -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()});
|
||||
|
|
Loading…
Reference in a new issue