mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
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…
Reference in a new issue