Merge pull request #11230 from nextcloud/e2eCorrectState

Show setup e2e only when
This commit is contained in:
Álvaro Brey 2023-01-25 09:55:00 +01:00 committed by GitHub
commit 4cedd9d30d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -428,7 +428,9 @@ public class SettingsActivity extends PreferenceActivity
if (preference != null) {
if (FileOperationsHelper.isEndToEndEncryptionSetup(this, user) ||
CapabilityUtils.getCapability(this).getEndToEndEncryptionKeysExist().isTrue()) {
CapabilityUtils.getCapability(this).getEndToEndEncryptionKeysExist().isTrue() ||
CapabilityUtils.getCapability(this).getEndToEndEncryptionKeysExist().isUnknown()
) {
preferenceCategoryMore.removePreference(preference);
} else {
preference.setOnPreferenceClickListener(p -> {