chore: Follow up send filename for keyboard input

pull/903/head
krille-chan 2 years ago
parent 549291ab40
commit 6c5133abfe
No known key found for this signature in database

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

Loading…
Cancel
Save