π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Don't show in-app changelog on fresh install anymore
laurenspriem25a168811832
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.ktindex d57004228f..bb510eb386 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/whatsnew/WhatsNewService.kt@@ -14,11 +14,12 @@ class WhatsNewService(context: Context) {)fun getPendingWhatsNew(): PendingWhatsNew? {- val seenVersion = if (preferences.contains(KEY_SEEN_VERSION)) {- preferences.getInt(KEY_SEEN_VERSION, WhatsNewContent.VERSION)- } else {- 0+ if (!preferences.contains(KEY_SEEN_VERSION)) {+ markSeen()+ return null}++ val seenVersion = preferences.getInt(KEY_SEEN_VERSION, WhatsNewContent.VERSION)if (seenVersion >= WhatsNewContent.VERSION) return nullif (WhatsNewContent.entries.isEmpty()) {diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/Services/WhatsNewService.swift b/mobile/native/darwin/Apps/Ensu/Ensu/Services/WhatsNewService.swiftindex a644593b19..29c45b661d 100644--- a/mobile/native/darwin/Apps/Ensu/Ensu/Services/WhatsNewService.swift+++ b/mobile/native/darwin/Apps/Ensu/Ensu/Services/WhatsNewService.swift@@ -19,13 +19,12 @@ final class WhatsNewService {}func pendingWhatsNew() -> PendingWhatsNew? {- let seenVersion: Intif defaults.object(forKey: seenVersionKey) == nil {- seenVersion = 0- } else {- seenVersion = defaults.integer(forKey: seenVersionKey)+ markSeen()+ return nil}+ let seenVersion = defaults.integer(forKey: seenVersionKey)if seenVersion >= WhatsNewContent.version {return nil}diff --git a/web/apps/ensu/src/services/whats-new.ts b/web/apps/ensu/src/services/whats-new.tsindex 7716899721..6f040f3d70 100644--- a/web/apps/ensu/src/services/whats-new.ts+++ b/web/apps/ensu/src/services/whats-new.ts@@ -42,7 +42,10 @@ export const markDesktopWhatsNewSeen = () => {const readSeenVersion = () => {try {const rawValue = window.localStorage.getItem(storageKey);- if (rawValue === null) return 0;+ if (rawValue === null) {+ markDesktopWhatsNewSeen();+ return whatsNewVersion;+ }const parsed = Number(rawValue);if (Number.isInteger(parsed) && parsed > 0) return parsed;