From 6c5133abfee066f0f699b5085bac4cc3dfa7ae31 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 25 Feb 2024 15:46:55 +0100 Subject: [PATCH] chore: Follow up send filename for keyboard input --- lib/pages/chat/input_bar.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index ff5f58bfc..1140863e9 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -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); },