|
|
@ -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);
|
|
|
|
},
|
|
|
|
},
|
|
|
|