Skip to content

Commit 757ea73

Browse files
authored
fix: prevent SVG crash on iOS and enable rendering on Android (#6949)
1 parent 09ec94d commit 757ea73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • app/containers/message/Components/Attachments/Image

app/containers/message/Components/Attachments/Image/Image.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const MessageImage = React.memo(({ uri, status, encrypted = false, imageP
2828
Image.loadAsync(uri, {
2929
onError: e => {
3030
log(e);
31-
}
31+
},
32+
maxHeight: 1000,
33+
maxWidth: 1000
3234
}).then(image => {
3335
setImageDimensions({ width: image.width, height: image.height });
3436
});

0 commit comments

Comments
 (0)