Temporarily block payments in all regions.
This commit is contained in:
parent
4b6cb79c75
commit
4637e1b5d8
1 changed files with 20 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue