mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Don't connect to server if !isPushRegistered
Partial fix for #6620. Closes #6627 // FREEBIE
This commit is contained in:
parent
3d7331159f
commit
99d229bb45
@ -144,7 +144,8 @@ public class MessageRetrievalService extends Service implements InjectableType,
|
||||
Log.w(TAG, String.format("Network requirement: %s, active activities: %s, push pending: %s, gcm disabled: %b",
|
||||
networkRequirement.isPresent(), activeActivities, pushPending.size(), isGcmDisabled));
|
||||
|
||||
return TextSecurePreferences.isWebsocketRegistered(this) &&
|
||||
return TextSecurePreferences.isPushRegistered(this) &&
|
||||
TextSecurePreferences.isWebsocketRegistered(this) &&
|
||||
(activeActivities > 0 || !pushPending.isEmpty() || isGcmDisabled) &&
|
||||
networkRequirement.isPresent();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user