Skip to content

Commit

Permalink
refactor: Add already available file metadata to placeholder event wh…
Browse files Browse the repository at this point in the history
…en sending a file
  • Loading branch information
krille-chan committed Dec 27, 2024
1 parent 992c8e4 commit e13339b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,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,
Expand Down

0 comments on commit e13339b

Please sign in to comment.