fix image attachment with new cdn

This commit is contained in:
Salvatore Giordano
2021-03-04 10:47:25 +01:00
parent 8e701d3f0c
commit 505bffb6ca
2 changed files with 3 additions and 3 deletions
@@ -2,6 +2,6 @@
<Workspace <Workspace
version = "1.0"> version = "1.0">
<FileRef <FileRef
location = "group:Runner.xcodeproj"> location = "self:">
</FileRef> </FileRef>
</Workspace> </Workspace>
@@ -63,8 +63,8 @@ class ImageAttachment extends AttachmentWidget {
if (imageUri.host == 'stream-io-cdn.com') { if (imageUri.host == 'stream-io-cdn.com') {
imageUri = imageUri.replace(queryParameters: { imageUri = imageUri.replace(queryParameters: {
...imageUri.queryParameters, ...imageUri.queryParameters,
'height': '500', 'h': '500',
'width': '500', 'w': '500',
'crop': 'center', 'crop': 'center',
'resize': 'crop', 'resize': 'crop',
}); });