Skip to content

Commit

Permalink
TW-1338: fix thumbnail of copied image don't have good size
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed Jan 22, 2024
1 parent 10e03f2 commit d0301c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/presentation/mixins/paste_image_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ mixin PasteImageMixin {
.where(
(matrixFile) => matrixFile != null,
)
.cast<MatrixFile>()
.map(
(matrixFile) => MatrixImageFile(
name: matrixFile!.name,
mimeType: matrixFile.mimeType,
bytes: matrixFile.bytes,
),
)
.cast<MatrixImageFile>()
.toList();
await showDialog(
context: context,
Expand Down

0 comments on commit d0301c5

Please sign in to comment.