From c48d4f01dc2e0500779fb272c23265054f295db8 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shalong-tanwen@users.noreply.github.com> Date: Sat, 7 Oct 2023 10:17:50 +0000 Subject: [PATCH] Fix/mobile remove upload soft limit (#4380) * fix(mobile): remove soft limit for manual upload * chore(mobile): remove translation text --- mobile/assets/i18n/en-US.json | 1 - mobile/lib/modules/home/views/home_page.dart | 20 +++++--------------- 2 files changed, 5 insertions(+), 16 deletions(-) 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; }