fix: Always send info object for stickers

pull/969/head rc1.19.0-4
krille-chan 2 years ago
parent f4196f38c3
commit 4fca106a51
No known key found for this signature in database

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

Loading…
Cancel
Save