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
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user