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:
Salvatore Giordano
2022-07-25 11:31:45 +02:00
committed by GitHub
co-authored by Deven Joshi
parent b5414349e7
commit e9e35d7d29
2 changed files with 3 additions and 2 deletions
@@ -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'];
}
}