Skip to content

armgit / ente

Public Imported from GitHub
0

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

Restore changelog version gating

ashilkn76f0713d28cb
diff --git a/mobile/apps/photos/lib/services/update_service.dart b/mobile/apps/photos/lib/services/update_service.dart
index 81ba4da9a0..c1991d519b 100644
--- a/mobile/apps/photos/lib/services/update_service.dart
+++ b/mobile/apps/photos/lib/services/update_service.dart
@@ -28,8 +28,9 @@ class UpdateService {
}
Future<bool> showChangeLog() async {
- // Temporary override to keep the changelog visible on every launch.
- return true;
+ // fetch the change log version which was last shown to user.
+ final lastShownAtVersion = _prefs.getInt(changeLogVersionKey) ?? 0;
+ return lastShownAtVersion < currentChangeLogVersion;
}
Future<bool> hideChangeLog() async {