fix: Always send info object for stickers

This commit is contained in:
krille-chan 2024-03-31 14:40:12 +02:00
parent f4196f38c3
commit 4fca106a51
No known key found for this signature in database

View file

@ -65,7 +65,7 @@ class ChatEmojiPicker extends StatelessWidget {
controller.room.sendEvent(
{
'body': sticker.body,
if (sticker.info != null) 'info': sticker.info,
'info': sticker.info ?? {},
'url': sticker.url.toString(),
},
type: EventTypes.Sticker,