aboutsummaryrefslogtreecommitdiffstats
path: root/src/playstore/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/playstore/java')
-rw-r--r--src/playstore/java/eu/siacs/conversations/services/PushManagementService.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
index d65170ee..68e824cb 100644
--- a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
+++ b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
@@ -20,7 +20,7 @@ import eu.siacs.conversations.xmpp.stanzas.IqPacket;
public class PushManagementService {
- private static final String APP_SERVER = "push.conversations.im";
+ private static final String APP_SERVER = "push.siacs.eu";
protected final XmppConnectionService mXmppConnectionService;
@@ -64,12 +64,13 @@ public class PushManagementService {
}
- public boolean available() {
- return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mXmppConnectionService) == ConnectionResult.SUCCESS;
+
+ public boolean available(Account account) {
+ return account.getXmppConnection().getFeatures().push() && playServicesAvailable();
}
- public boolean pushAvailable(Account account) {
- return account.getXmppConnection().getFeatures().push() && available();
+ private boolean playServicesAvailable() {
+ return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mXmppConnectionService) == ConnectionResult.SUCCESS;
}
interface OnGcmInstanceTokenRetrieved {