mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Temporarily block payments in all regions.
This commit is contained in:
@@ -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.
|
* 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;
|
return PaymentsAvailability.NOT_IN_REGION;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (FeatureFlags.payments()) {
|
// if (FeatureFlags.payments()) {
|
||||||
if (mobileCoinPaymentsEnabled()) {
|
// if (mobileCoinPaymentsEnabled()) {
|
||||||
return PaymentsAvailability.WITHDRAW_AND_SEND;
|
// return PaymentsAvailability.WITHDRAW_AND_SEND;
|
||||||
} else {
|
// } else {
|
||||||
return PaymentsAvailability.REGISTRATION_AVAILABLE;
|
// return PaymentsAvailability.REGISTRATION_AVAILABLE;
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
if (mobileCoinPaymentsEnabled()) {
|
// if (mobileCoinPaymentsEnabled()) {
|
||||||
return PaymentsAvailability.WITHDRAW_ONLY;
|
// return PaymentsAvailability.WITHDRAW_ONLY;
|
||||||
} else {
|
// } else {
|
||||||
return PaymentsAvailability.DISABLED_REMOTELY;
|
// return PaymentsAvailability.DISABLED_REMOTELY;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
|
|||||||
Reference in New Issue
Block a user