diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/chat/ContactPreferences.kt b/apps/android/app/src/main/java/chat/simplex/app/views/chat/ContactPreferences.kt index 03a9479f9a..8fb643e15e 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/chat/ContactPreferences.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/chat/ContactPreferences.kt @@ -72,11 +72,11 @@ private fun ContactPreferencesLayout( horizontalAlignment = Alignment.Start, ) { AppBarTitle(stringResource(R.string.contact_preferences)) - val allowFullDeletion: MutableState = remember(featuresAllowed) { mutableStateOf(featuresAllowed.fullDelete) } - FeatureSection(Feature.FullDelete, user.fullPreferences.fullDelete.allow, contact.mergedPreferences.fullDelete, allowFullDeletion) { - applyPrefs(featuresAllowed.copy(fullDelete = it)) - } - SectionSpacer() +// val allowFullDeletion: MutableState = remember(featuresAllowed) { mutableStateOf(featuresAllowed.fullDelete) } +// FeatureSection(Feature.FullDelete, user.fullPreferences.fullDelete.allow, contact.mergedPreferences.fullDelete, allowFullDeletion) { +// applyPrefs(featuresAllowed.copy(fullDelete = it)) +// } +// SectionSpacer() val allowVoice: MutableState = remember(featuresAllowed) { mutableStateOf(featuresAllowed.voice) } FeatureSection(Feature.Voice, user.fullPreferences.voice.allow, contact.mergedPreferences.voice, allowVoice) { applyPrefs(featuresAllowed.copy(voice = it)) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/chat/group/GroupPreferences.kt b/apps/android/app/src/main/java/chat/simplex/app/views/chat/group/GroupPreferences.kt index 963dd5df19..b4afdd9d84 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/chat/group/GroupPreferences.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/chat/group/GroupPreferences.kt @@ -60,11 +60,11 @@ private fun GroupPreferencesLayout( horizontalAlignment = Alignment.Start, ) { AppBarTitle(stringResource(R.string.group_preferences)) - val allowFullDeletion = remember(preferences) { mutableStateOf(preferences.fullDelete.enable) } - FeatureSection(Feature.FullDelete, allowFullDeletion, groupInfo) { - applyPrefs(preferences.copy(fullDelete = GroupPreference(enable = it))) - } - SectionSpacer() +// val allowFullDeletion = remember(preferences) { mutableStateOf(preferences.fullDelete.enable) } +// FeatureSection(Feature.FullDelete, allowFullDeletion, groupInfo) { +// applyPrefs(preferences.copy(fullDelete = GroupPreference(enable = it))) +// } +// SectionSpacer() val allowVoice = remember(preferences) { mutableStateOf(preferences.voice.enable) } FeatureSection(Feature.Voice, allowVoice, groupInfo) { applyPrefs(preferences.copy(voice = GroupPreference(enable = it))) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/usersettings/Preferences.kt b/apps/android/app/src/main/java/chat/simplex/app/views/usersettings/Preferences.kt index c27a56e77c..1ba3512699 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/usersettings/Preferences.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/usersettings/Preferences.kt @@ -61,11 +61,11 @@ private fun PreferencesLayout( horizontalAlignment = Alignment.Start, ) { AppBarTitle(stringResource(R.string.your_preferences)) - val allowFullDeletion = remember(preferences) { mutableStateOf(preferences.fullDelete.allow) } - FeatureSection(Feature.FullDelete, allowFullDeletion) { - applyPrefs(preferences.copy(fullDelete = ChatPreference(allow = it))) - } - SectionSpacer() +// val allowFullDeletion = remember(preferences) { mutableStateOf(preferences.fullDelete.allow) } +// FeatureSection(Feature.FullDelete, allowFullDeletion) { +// applyPrefs(preferences.copy(fullDelete = ChatPreference(allow = it))) +// } +// SectionSpacer() val allowVoice = remember(preferences) { mutableStateOf(preferences.voice.allow) } FeatureSection(Feature.Voice, allowVoice) { applyPrefs(preferences.copy(voice = ChatPreference(allow = it))) diff --git a/apps/ios/Shared/Views/Chat/ContactPreferencesView.swift b/apps/ios/Shared/Views/Chat/ContactPreferencesView.swift index 8e12e16ea4..f22e2f5509 100644 --- a/apps/ios/Shared/Views/Chat/ContactPreferencesView.swift +++ b/apps/ios/Shared/Views/Chat/ContactPreferencesView.swift @@ -20,7 +20,7 @@ struct ContactPreferencesView: View { VStack { List { - featureSection(.fullDelete, user.fullPreferences.fullDelete.allow, contact.mergedPreferences.fullDelete, $featuresAllowed.fullDelete) + // featureSection(.fullDelete, user.fullPreferences.fullDelete.allow, contact.mergedPreferences.fullDelete, $featuresAllowed.fullDelete) featureSection(.voice, user.fullPreferences.voice.allow, contact.mergedPreferences.voice, $featuresAllowed.voice) Section { diff --git a/apps/ios/Shared/Views/Chat/Group/GroupPreferencesView.swift b/apps/ios/Shared/Views/Chat/Group/GroupPreferencesView.swift index 97fa2111aa..71d02a772b 100644 --- a/apps/ios/Shared/Views/Chat/Group/GroupPreferencesView.swift +++ b/apps/ios/Shared/Views/Chat/Group/GroupPreferencesView.swift @@ -18,7 +18,7 @@ struct GroupPreferencesView: View { var body: some View { VStack { List { - featureSection(.fullDelete, $preferences.fullDelete.enable) + // featureSection(.fullDelete, $preferences.fullDelete.enable) featureSection(.voice, $preferences.voice.enable) if groupInfo.canEdit { diff --git a/apps/ios/Shared/Views/UserSettings/PreferencesView.swift b/apps/ios/Shared/Views/UserSettings/PreferencesView.swift index 5812410429..01b766a62d 100644 --- a/apps/ios/Shared/Views/UserSettings/PreferencesView.swift +++ b/apps/ios/Shared/Views/UserSettings/PreferencesView.swift @@ -18,7 +18,7 @@ struct PreferencesView: View { var body: some View { VStack { List { - featureSection(.fullDelete, $preferences.fullDelete.allow) + // featureSection(.fullDelete, $preferences.fullDelete.allow) featureSection(.voice, $preferences.voice.allow) Section {