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 Jan 6, 2025
1 parent c87e2ee commit a7df9a7
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 @@ -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,
Expand Down

0 comments on commit a7df9a7

Please sign in to comment.