refactor: Add file info to placeholder before sending file event

This commit is contained in:
Krille 2025-03-13 08:15:39 +01:00
parent acf6c990a9
commit f89e9f575b
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 2 additions and 0 deletions

View File

@ -744,6 +744,8 @@ class Room {
'msgtype': file.msgType, 'msgtype': file.msgType,
'body': file.name, 'body': file.name,
'filename': file.name, 'filename': file.name,
'info': file.info,
if (extraContent != null) ...extraContent,
}, },
type: EventTypes.Message, type: EventTypes.Message,
eventId: txid, eventId: txid,