fix(ui): fix image download on iOS (#1280)
* fix(ui): fix image download * chore(ui): update changelog * Update packages/stream_chat_flutter/lib/src/attachment_actions_modal.dart * Update packages/stream_chat_flutter/CHANGELOG.md Co-authored-by: Deven Joshi <[email protected]> Co-authored-by: Deven Joshi <[email protected]>
This commit is contained in:
co-authored by
Deven Joshi
parent
b5414349e7
commit
e9e35d7d29
@@ -1,4 +1,4 @@
|
|||||||
## Upcming
|
## Upcoming
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
showing up in the chat.
|
showing up in the chat.
|
||||||
- [[#1240]](https://github.com/getstream/stream-chat-flutter/issues/1240) Substitute mentioned user
|
- [[#1240]](https://github.com/getstream/stream-chat-flutter/issues/1240) Substitute mentioned user
|
||||||
ids with user names in system message.
|
ids with user names in system message.
|
||||||
|
- [[#1228]](https://github.com/GetStream/stream-chat-flutter/issues/1228) Fix image download on iOS.
|
||||||
|
|
||||||
🔄 Changed
|
🔄 Changed
|
||||||
|
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
onReceiveProgress: progressCallback,
|
onReceiveProgress: progressCallback,
|
||||||
);
|
);
|
||||||
final result = await ImageGallerySaver.saveFile(filePath!);
|
final result = await ImageGallerySaver.saveFile(filePath!);
|
||||||
downloadedPathCallback?.call((result as Map)['filePath']);
|
downloadedPathCallback?.call((result as Map)['filePath'] ?? filePath);
|
||||||
return (result as Map)['filePath'];
|
return (result as Map)['filePath'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user