krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.22k stars 222 forks source link

m.sticker missing info #1454

Closed North-West-Wind closed 2 weeks ago

North-West-Wind commented 2 weeks ago

Bug Description

Stickers sent from FluffyChat has an empty info object. Normally this would be fine, but it breaks with the Mautrix Discord bridge. Missing mimetype (maybe width and height as well) causes the bridge to not realize it's an image.

On FluffyChat: Screenshot of FluffyChat

On Discord: Screenshot of Discord

Steps to Reproduce

  1. Add a sticker to FluffyChat
  2. Send a sticker
  3. Select the message and check message info
  4. The content.info field is an empty object

Expected Behavior

The content.info should have metadata about the file. For example, Cinny includes this: Cinny m.sticker includes info

App Version

1.22.0

Additional Platform Information

OS: Android

Additional Context

No response

krille-chan commented 2 weeks ago

FluffyChat adds metadata from stickers, but the data needs to be configured correctly in the given sticker pack. FluffyChat does this when importing a sticker so this is a problem with your sticker import 🤔

North-West-Wind commented 2 weeks ago

I see. I have been reading the MSC2545 proposal and missed that part. Thanks!