diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index 937a0f089c..4495fd8cc2 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -42,7 +42,10 @@ private struct FeatureView { let view: () -> any View } -let isInUS = SKStorefront().countryCode == "USA" +let isInUS = { + let code = SKStorefront().countryCode + return code == "USA" || code == "" +}() private let versionDescriptions: [VersionDescription] = [ VersionDescription( @@ -668,7 +671,7 @@ private let versionDescriptions: [VersionDescription] = [ ] ), VersionDescription( - version: "v7.0 ", + version: isInUS ? "v7.0.1" : "v7.0", post: nil, features: (isInUS ? [ .view(FeatureView( diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/onboarding/WhatsNewView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/onboarding/WhatsNewView.kt index 6391c88035..8e54fb4a7e 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/onboarding/WhatsNewView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/onboarding/WhatsNewView.kt @@ -943,7 +943,7 @@ private val versionDescriptions: List = listOf( ), VersionDescription( // the trailing space differs from the previously released "v7.0", so that What's new is shown again - version = "v7.0 ", + version = if (isInUs()) "v7.0.1" else "v7.0", post = null, features = listOf( VersionFeature.FeatureView( @@ -1024,12 +1024,19 @@ else @Composable fun crowdfundingAvailable(): Boolean { if (!platform.androidIsPlayStoreBuild) return true - LaunchedEffect(Unit) { - if (androidPlayStoreCountry.value == null) platform.androidLoadPlayStoreCountry() + if (androidPlayStoreCountry.value == null) { + LaunchedEffect(Unit) { + if (androidPlayStoreCountry.value == null) platform.androidLoadPlayStoreCountry() + } } - return androidPlayStoreCountry.value == "US" + return isInUs() } +fun isInUs(): Boolean = + androidPlayStoreCountry.value == "US" + || androidPlayStoreCountry.value == "" + || androidPlayStoreCountry.value == null + @Composable private fun InvestInSimpleXChatView(modalManager: ModalManager) { if (!crowdfundingAvailable()) return