diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt index c1882b2f73..ef3e791d91 100755 --- a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt @@ -994,7 +994,7 @@ class VectorPreferences @Inject constructor( */ fun useFlagSecure(): Boolean { // Tchap: Screenshot is allowed for Gplay Pre-prod and Dev versions only. - return !(BuildConfig.FLAVOR_store == "gplay" && BuildConfig.FLAVOR_target != "tchap") + return BuildConfig.FLAVOR_store != "gplay" || BuildConfig.FLAVOR_target == "tchap" } /** Whether the keyboard should disable personalized learning. */