[mob] Skip placeHolder creation on link gen failure

This commit is contained in:
Neeraj Gupta
2024-09-13 13:53:01 +05:30
parent 82712e9313
commit 58b82b46f3

View File

@@ -680,6 +680,10 @@ class _FileSelectionActionsWidgetState
_cachedCollectionForSharedLink ??= await collectionActions
.createSharedCollectionLink(context, split.ownedByCurrentUser);
if (_cachedCollectionForSharedLink == null) {
await dialog.hide();
return;
}
final List<EnteFile> ownedSelectedFiles = split.ownedByCurrentUser;
placeholderBytes = await _createPlaceholder(ownedSelectedFiles);
await dialog.hide();