Skip to content

Commit

Permalink
Fix local image preview on web
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Nov 21, 2021
1 parent 80525a2 commit 8ab0d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ List<Object> calculateChatMessages(

if (message is types.ImageMessage) {
if (kIsWeb) {
if (message.uri.startsWith('http')) {
if (message.uri.startsWith('http') || message.uri.startsWith('blob')) {
gallery.add(PreviewImage(id: message.id, uri: message.uri));
}
} else {
Expand Down

0 comments on commit 8ab0d3a

Please sign in to comment.