diff --git a/app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java b/app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java index c4e70570d..6fa58cade 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java +++ b/app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java @@ -106,27 +106,27 @@ public final class PaymentsValues extends SignalStoreValues { * Applies feature flags and region restrictions to return an enum which describes the available feature set for the user. */ public PaymentsAvailability getPaymentsAvailability() { - Context context = ApplicationDependencies.getApplication(); - - if (!TextSecurePreferences.isPushRegistered(context) || - !GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(context))) - { +// Context context = ApplicationDependencies.getApplication(); +// +// if (!TextSecurePreferences.isPushRegistered(context) || +// !GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(context))) +// { return PaymentsAvailability.NOT_IN_REGION; - } - - if (FeatureFlags.payments()) { - if (mobileCoinPaymentsEnabled()) { - return PaymentsAvailability.WITHDRAW_AND_SEND; - } else { - return PaymentsAvailability.REGISTRATION_AVAILABLE; - } - } else { - if (mobileCoinPaymentsEnabled()) { - return PaymentsAvailability.WITHDRAW_ONLY; - } else { - return PaymentsAvailability.DISABLED_REMOTELY; - } - } +// } +// +// if (FeatureFlags.payments()) { +// if (mobileCoinPaymentsEnabled()) { +// return PaymentsAvailability.WITHDRAW_AND_SEND; +// } else { +// return PaymentsAvailability.REGISTRATION_AVAILABLE; +// } +// } else { +// if (mobileCoinPaymentsEnabled()) { +// return PaymentsAvailability.WITHDRAW_ONLY; +// } else { +// return PaymentsAvailability.DISABLED_REMOTELY; +// } +// } } @WorkerThread