mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Make messaging in keepalive more explicit.
This commit is contained in:
committed by
Greyson Parrelli
parent
c7352f62e5
commit
782464f664
@@ -90,11 +90,16 @@ public class SubscriptionKeepAliveJob extends BaseJob {
|
||||
Log.i(TAG, "Successful call to GET active subscription", true);
|
||||
|
||||
ActiveSubscription activeSubscription = activeSubscriptionResponse.getResult().get();
|
||||
if (activeSubscription.getActiveSubscription() == null || !activeSubscription.getActiveSubscription().isActive()) {
|
||||
if (activeSubscription.getActiveSubscription() == null) {
|
||||
Log.i(TAG, "User does not have an active subscription. Exiting.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!activeSubscription.getActiveSubscription().isActive()) {
|
||||
Log.i(TAG, "User has an inactive subscription. Status message: " + activeSubscription.getActiveSubscription().getStatus() + " Exiting.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (activeSubscription.getActiveSubscription().getEndOfCurrentPeriod() > SignalStore.donationsValues().getLastEndOfPeriod()) {
|
||||
Log.i(TAG,
|
||||
String.format(Locale.US,
|
||||
|
||||
Reference in New Issue
Block a user