After review, everything looks good. Update MobileCoin Payments Beta country codes.

This reverts commit 0cb53f40f4.
This commit is contained in:
Greyson Parrelli
2021-11-12 18:58:24 -05:00
parent aa872d29bc
commit 270ab34c6a
5 changed files with 37 additions and 211 deletions

View File

@@ -108,15 +108,15 @@ public final class PaymentsValues extends SignalStoreValues {
public PaymentsAvailability getPaymentsAvailability() {
Context context = ApplicationDependencies.getApplication();
if (!TextSecurePreferences.isPushRegistered(context)) {
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 if (!GeographicalRestrictions.e164Allowed(TextSecurePreferences.getLocalNumber(context))) {
return PaymentsAvailability.NOT_IN_REGION;
} else {
return PaymentsAvailability.REGISTRATION_AVAILABLE;
}