💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: logic of await/async
Prateek Sunalf04e45a46116
diff --git a/mobile/lib/app.dart b/mobile/lib/app.dartindex 3ab84a5d03..9d35d2a60c 100644--- a/mobile/lib/app.dart+++ b/mobile/lib/app.dart@@ -91,39 +91,38 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {unawaited(HomeWidgetService.instance.initHomeWidget());final thumbnail = await CollectionsService.instance.getCover(collection);- unawaited(- () async {- await routeToPage(- context,- CollectionPage(- CollectionWithThumbnail(- collection,- thumbnail,- ),- ),- );- final previousGeneratedId =- await hw.HomeWidget.getWidgetData<int>("home_widget_last_img");- if (previousGeneratedId == null) return;+ final previousGeneratedId =+ await hw.HomeWidget.getWidgetData<int>("home_widget_last_img");+ final res = previousGeneratedId != null+ ? await FilesDB.instance.getFile(+ previousGeneratedId,+ )+ : null;++ routeToPage(+ context,+ CollectionPage(+ CollectionWithThumbnail(+ collection,+ thumbnail,+ ),+ ),+ ).ignore();- final res = await FilesDB.instance.getFile(- previousGeneratedId,- );+ if (previousGeneratedId == null) return;- if (res == null) return;+ if (res == null) return;- final page = DetailPage(- DetailPageConfiguration(- List.unmodifiable([res]),- null,- 0,- "collection",- ),- );- await routeToPage(context, page, forceCustomPageRoute: true);- }(),+ final page = DetailPage(+ DetailPageConfiguration(+ List.unmodifiable([res]),+ null,+ 0,+ "collection",+ ),);+ routeToPage(context, page, forceCustomPageRoute: true).ignore();}setLocale(Locale newLocale) {diff --git a/mobile/lib/generated/intl/messages_zh.dart b/mobile/lib/generated/intl/messages_zh.dartindex 65e2af71f4..73d2ae0f5e 100644--- a/mobile/lib/generated/intl/messages_zh.dart+++ b/mobile/lib/generated/intl/messages_zh.dart@@ -1026,7 +1026,7 @@ class MessageLookup extends MessageLookupByLibrary {"selectedFilesAreNotOnEnte":MessageLookupByLibrary.simpleMessage("所选文件不在 Ente 上"),"selectedFoldersWillBeEncryptedAndBackedUp":- MessageLookupByLibrary.simpleMessage("所选文件夹将被加密和备份"),+ MessageLookupByLibrary.simpleMessage("所选文件夹将被加密并备份"),"selectedItemsWillBeDeletedFromAllAlbumsAndMoved":MessageLookupByLibrary.simpleMessage("所选项目将从所有相册中删除并移动到回收站。"),"selectedPhotos": m46,