Skip to content

armgit / ente

Public Imported from GitHub
0

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

use better fn name

ashilknc15db39240cc
diff --git a/lib/services/update_service.dart b/lib/services/update_service.dart
index ca49850043..13a1cee1e2 100644
--- a/lib/services/update_service.dart
+++ b/lib/services/update_service.dart
@@ -73,7 +73,7 @@ class UpdateService {
return _latestVersion;
}
- Future<bool> canShowUpdateNoification() async {
+ Future<bool> shouldShowUpdateNoification() async {
final shouldUpdate = await this.shouldUpdate();
final lastNotificationShownTime =
@@ -87,7 +87,7 @@ class UpdateService {
}
Future<void> showUpdateNotification() async {
- if (await canShowUpdateNoification()) {
+ if (await shouldShowUpdateNoification()) {
// ignore: unawaited_futures
NotificationService.instance.showNotification(
"Update available",
diff --git a/lib/ui/tabs/home_widget.dart b/lib/ui/tabs/home_widget.dart
index 104ff6742a..6ce7d46d12 100644
--- a/lib/ui/tabs/home_widget.dart
+++ b/lib/ui/tabs/home_widget.dart
@@ -194,7 +194,7 @@ class _HomeWidgetState extends State<HomeWidget> {
},
);
_initDeepLinks();
- UpdateService.instance.canShowUpdateNoification().then((value) {
+ UpdateService.instance.shouldShowUpdateNoification().then((value) {
Future.delayed(Duration.zero, () {
if (value) {
showDialog(