diff --git a/lib/src/room.dart b/lib/src/room.dart index 255fdd62..b607a5cd 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -734,6 +734,11 @@ class Room { 'msgtype': file.msgType, 'body': file.name, 'filename': file.name, + 'info': { + ...file.info, + if (thumbnail != null) 'thumbnail_info': thumbnail.info, + }, + if (extraContent != null) ...extraContent, }, type: EventTypes.Message, eventId: txid,