aboutsummaryrefslogtreecommitdiffstats
path: root/src/playstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/playstore')
-rw-r--r--src/playstore/java/eu/siacs/conversations/services/PushManagementService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
index ae86f8c2..83d20aed 100644
--- a/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
+++ b/src/playstore/java/eu/siacs/conversations/services/PushManagementService.java
@@ -106,6 +106,10 @@ public class PushManagementService {
return connection != null && connection.getFeatures().push() && playServicesAvailable();
}
+ public boolean availableAndUseful(Account account) {
+ return account.getServerIdentity() == XmppConnection.Identity.EJABBERD && available(account);
+ }
+
private boolean playServicesAvailable() {
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mXmppConnectionService) == ConnectionResult.SUCCESS;
}