diff --git a/lib/presentation/mixins/paste_image_mixin.dart b/lib/presentation/mixins/paste_image_mixin.dart index 7a9de47a65..c25bb2a9ee 100644 --- a/lib/presentation/mixins/paste_image_mixin.dart +++ b/lib/presentation/mixins/paste_image_mixin.dart @@ -32,7 +32,14 @@ mixin PasteImageMixin { .where( (matrixFile) => matrixFile != null, ) - .cast() + .map( + (matrixFile) => MatrixImageFile( + name: matrixFile!.name, + mimeType: matrixFile.mimeType, + bytes: matrixFile.bytes, + ), + ) + .cast() .toList(); await showDialog( context: context,