diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json index a7bfd13676..0fd20a79bd 100644 --- a/mobile/assets/i18n/en-US.json +++ b/mobile/assets/i18n/en-US.json @@ -163,7 +163,6 @@ "home_page_building_timeline": "Building the timeline", "home_page_favorite_err_local": "Can not favorite local assets yet, skipping", "home_page_first_time_notice": "If this is your first time using the app, please make sure to choose a backup album(s) so that the timeline can populate photos and videos in the album(s).", - "home_page_upload_err_limit": "Can only upload a maximum of 30 assets at a time, skipping", "image_viewer_page_state_provider_download_error": "Download Error", "image_viewer_page_state_provider_download_success": "Download Success", "library_page_albums": "Albums", diff --git a/mobile/lib/modules/home/views/home_page.dart b/mobile/lib/modules/home/views/home_page.dart index 5682f6f7cc..5dfc8ed918 100644 --- a/mobile/lib/modules/home/views/home_page.dart +++ b/mobile/lib/modules/home/views/home_page.dart @@ -162,23 +162,13 @@ class HomePage extends HookConsumerWidget { } } - void onUpload() async { + void onUpload() { processing.value = true; + selectionEnabledHook.value = false; try { - final Set assets = selection.value; - if (assets.length > 30) { - ImmichToast.show( - context: context, - msg: 'home_page_upload_err_limit'.tr(), - gravity: ToastGravity.BOTTOM, - ); - } else { - processing.value = false; - selectionEnabledHook.value = false; - await ref - .read(manualUploadProvider.notifier) - .uploadAssets(context, assets); - } + ref + .read(manualUploadProvider.notifier) + .uploadAssets(context, selection.value); } finally { processing.value = false; }