mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: local share action not working on iPad (#22238)
fix: share photo not working on iPad Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
7a0107fc79
commit
6609e70fa8
4 changed files with 16 additions and 10 deletions
|
|
@ -342,11 +342,11 @@ class ActionNotifier extends Notifier<void> {
|
|||
}
|
||||
}
|
||||
|
||||
Future<ActionResult> shareAssets(ActionSource source) async {
|
||||
Future<ActionResult> shareAssets(ActionSource source, BuildContext context) async {
|
||||
final ids = _getAssets(source).toList(growable: false);
|
||||
|
||||
try {
|
||||
await _service.shareAssets(ids);
|
||||
await _service.shareAssets(ids, context);
|
||||
return ActionResult(count: ids.length, success: true);
|
||||
} catch (error, stack) {
|
||||
_logger.severe('Failed to share assets', error, stack);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue