Revert "Temporarily block payments for all regions."
This reverts commit 06ed124057
.
This commit is contained in:
parent
3f0377a840
commit
552b19cbb0
1 changed files with 21 additions and 22 deletions
|
@ -106,30 +106,29 @@ 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.
|
* Applies feature flags and region restrictions to return an enum which describes the available feature set for the user.
|
||||||
*/
|
*/
|
||||||
public PaymentsAvailability getPaymentsAvailability() {
|
public PaymentsAvailability getPaymentsAvailability() {
|
||||||
// Context context = ApplicationDependencies.getApplication();
|
Context context = ApplicationDependencies.getApplication();
|
||||||
//
|
|
||||||
// if (!TextSecurePreferences.isPushRegistered(context) ||
|
if (!TextSecurePreferences.isPushRegistered(context) ||
|
||||||
// !GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(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;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
return PaymentsAvailability.NOT_IN_REGION;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
public void setMobileCoinPaymentsEnabled(boolean isMobileCoinPaymentsEnabled) {
|
public void setMobileCoinPaymentsEnabled(boolean isMobileCoinPaymentsEnabled) {
|
||||||
if (mobileCoinPaymentsEnabled() == isMobileCoinPaymentsEnabled) {
|
if (mobileCoinPaymentsEnabled() == isMobileCoinPaymentsEnabled) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue