chore: Follow up send filename for keyboard input
This commit is contained in:
parent
549291ab40
commit
6c5133abfe
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue