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 <deven9852@gmail.com>

Co-authored-by: Deven Joshi <deven9852@gmail.com>
This commit is contained in:
Salvatore Giordano
2022-07-25 11:31:45 +02:00
committed by GitHub
parent b5414349e7
commit e9e35d7d29
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
## Upcming
## Upcoming
🐞 Fixed
@@ -7,6 +7,7 @@
showing up in the chat.
- [[#1240]](https://github.com/getstream/stream-chat-flutter/issues/1240) Substitute mentioned user
ids with user names in system message.
- [[#1228]](https://github.com/GetStream/stream-chat-flutter/issues/1228) Fix image download on iOS.
🔄 Changed
@@ -405,7 +405,7 @@ class AttachmentActionsModal extends StatelessWidget {
onReceiveProgress: progressCallback,
);
final result = await ImageGallerySaver.saveFile(filePath!);
downloadedPathCallback?.call((result as Map)['filePath']);
downloadedPathCallback?.call((result as Map)['filePath'] ?? filePath);
return (result as Map)['filePath'];
}
}