Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge branch 'fix_await_warnings' into onnx

vishnukvmd411ac66a91ea
diff --cc lib/main.dart
index d9a0ba5fcd,8bfbe44f85..12b13ab2d8
--- a/lib/main.dart
+++ b/lib/main.dart
@@@ -191,9 -191,8 +194,8 @@@ Future<void> _init(bool isBackground, {
);
});
}
- FeatureFlagService.instance.init();
- SemanticSearchService.instance.init(preferences);
-
+ unawaited(FeatureFlagService.instance.init());
-
++ unawaited(SemanticSearchService.instance.init(preferences));
// Can not including existing tf/ml binaries as they are not being built
// from source.
// See https://gitlab.com/fdroid/fdroiddata/-/merge_requests/12671#note_1294346819
diff --cc lib/ui/account/request_pwd_verification_page.dart
index b8d490a2d9,fad533fbca..5b9109d835
--- a/lib/ui/account/request_pwd_verification_page.dart
+++ b/lib/ui/account/request_pwd_verification_page.dart
@@@ -94,14 -95,14 +94,14 @@@ class _RequestPasswordVerificationPageS
attributes.opsLimit!,
);
CryptoUtil.decryptSync(
- Sodium.base642bin(attributes.encryptedKey),
+ CryptoUtil.base642bin(attributes.encryptedKey),
keyEncryptionKey,
- Sodium.base642bin(attributes.keyDecryptionNonce),
+ CryptoUtil.base642bin(attributes.keyDecryptionNonce),
);
- dialog.show();
+ await dialog.show();
// pop
await widget.onPasswordVerified(keyEncryptionKey);
- dialog.hide();
+ await dialog.hide();
Navigator.of(context).pop(true);
} catch (e, s) {
_logger.severe("Error while verifying password", e, s);