mobile: enable calls preference (#2436)

* ios: enable calls preference

* android: enable calls preference
This commit is contained in:
Evgeny Poberezkin
2023-05-13 11:22:31 +02:00
committed by GitHub
parent a2de9a3846
commit 0cfc9fd1fa
4 changed files with 6 additions and 8 deletions
@@ -139,7 +139,6 @@ private fun FeatureSection(
ContactFeatureAllowed.values(userDefault).map { it to it.text },
allowFeature,
icon = null,
enabled = remember { mutableStateOf(feature != ChatFeature.Calls) },
onSelected = onSelected
)
InfoRow(
@@ -147,7 +146,7 @@ private fun FeatureSection(
pref.contactPreference.allow.text
)
}
SectionTextFooter(feature.enabledDescription(enabled) + (if (feature == ChatFeature.Calls) generalGetString(R.string.available_in_v51) else ""))
SectionTextFooter(feature.enabledDescription(enabled))
}
@Composable
@@ -99,11 +99,10 @@ private fun FeatureSection(feature: ChatFeature, allowFeature: State<FeatureAllo
FeatureAllowed.values().map { it to it.text },
allowFeature,
icon = feature.icon,
enabled = remember { mutableStateOf(feature != ChatFeature.Calls) },
onSelected = onSelected,
)
}
SectionTextFooter(feature.allowDescription(allowFeature.value) + (if (feature == ChatFeature.Calls) generalGetString(R.string.available_in_v51) else ""))
SectionTextFooter(feature.allowDescription(allowFeature.value))
}
@Composable