Update MobileCoin Payments Beta country codes.

This commit is contained in:
Alex Hart
2021-11-12 14:53:35 -04:00
committed by GitHub
parent 51c86cab10
commit 0cb53f40f4
5 changed files with 211 additions and 37 deletions

View File

@@ -108,15 +108,15 @@ public final class PaymentsValues extends SignalStoreValues {
public PaymentsAvailability getPaymentsAvailability() {
Context context = ApplicationDependencies.getApplication();
if (!TextSecurePreferences.isPushRegistered(context) ||
!GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(context)))
{
if (!TextSecurePreferences.isPushRegistered(context)) {
return PaymentsAvailability.NOT_IN_REGION;
}
if (FeatureFlags.payments()) {
if (mobileCoinPaymentsEnabled()) {
return PaymentsAvailability.WITHDRAW_AND_SEND;
} else if (!GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(context))) {
return PaymentsAvailability.NOT_IN_REGION;
} else {
return PaymentsAvailability.REGISTRATION_AVAILABLE;
}