chore: Follow up send filename for keyboard input

This commit is contained in:
krille-chan 2024-02-25 15:46:55 +01:00
parent 549291ab40
commit 6c5133abfe
No known key found for this signature in database

View file

@ -459,10 +459,11 @@ class InputBar extends StatelessWidget {
onContentInserted: (KeyboardInsertedContent content) {
final data = content.data;
if (data == null) return;
final file = MatrixFile(
mimeType: content.mimeType,
bytes: data,
name: 'content-insertion',
name: content.uri.split('/').last,
);
room.sendFileEvent(file, shrinkImageMaxDimension: 1600);
},