aboutsummaryrefslogtreecommitdiffstats
path: root/src/playstore/java/de/pixart/messenger/services
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-10 22:21:02 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-10 22:21:02 +0100
commit53e2f9608d1608d9bad7124ef129725dbbb7f9f5 (patch)
tree19483d88dc1650ee0592d0193ecfbc050de55758 /src/playstore/java/de/pixart/messenger/services
parent52b34a698162ec7d2e249b1a75b42c6a4d465146 (diff)
only count push as available when sm is to avoid race conditions
Diffstat (limited to 'src/playstore/java/de/pixart/messenger/services')
-rw-r--r--src/playstore/java/de/pixart/messenger/services/PushManagementService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playstore/java/de/pixart/messenger/services/PushManagementService.java b/src/playstore/java/de/pixart/messenger/services/PushManagementService.java
index 701eea6d2..30d3f1769 100644
--- a/src/playstore/java/de/pixart/messenger/services/PushManagementService.java
+++ b/src/playstore/java/de/pixart/messenger/services/PushManagementService.java
@@ -101,7 +101,7 @@ public class PushManagementService {
public boolean available(Account account) {
final XmppConnection connection = account.getXmppConnection();
- return connection != null && connection.getFeatures().push() && playServicesAvailable();
+ return connection != null && connection.getFeatures().sm() && connection.getFeatures().push() && playServicesAvailable();
}
public boolean availableAndUseful(Account account) {