Skip to content

Commit

Permalink
fix: Missing image size popups when pasting images from clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
k3-cat committed Oct 4, 2024
1 parent 2c8188d commit e86b3f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pages/chat/input_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ class InputBar extends StatelessWidget {
final data = content.data;
if (data == null) return;

if (content.mimeType.startsWith("image/")) {
onSubmitImage!(data);
return;
}
final file = MatrixFile(
mimeType: content.mimeType,
bytes: data,
Expand Down

0 comments on commit e86b3f7

Please sign in to comment.