Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signal-Android
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GitHub Mirror
Signal
Signal-Android
Commits
11693314
Commit
11693314
authored
Apr 19, 2021
by
Alex Hart
Browse files
Options
Downloads
Patches
Plain Diff
Temporarily block payments in all regions.
parent
09788229
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java
+20
-20
20 additions, 20 deletions
...a/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java
with
20 additions
and
20 deletions
app/src/main/java/org/thoughtcrime/securesms/keyvalue/PaymentsValues.java
+
20
−
20
View file @
11693314
...
@@ -106,27 +106,27 @@ public final class PaymentsValues extends SignalStoreValues {
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Botaniker (Bot)
@botaniker
mentioned in commit
a844a6b6
·
Apr 22, 2021
mentioned in commit
a844a6b6
mentioned in commit a844a6b6c1054ed729a1e7b11199dbed037403fc
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment