mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-26 00:14:57 +00:00
Merge branch 'stable'
This commit is contained in:
+11
-4
@@ -943,7 +943,7 @@ private val versionDescriptions: List<VersionDescription> = 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
|
||||
|
||||
Reference in New Issue
Block a user