diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-10 22:21:02 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-10 22:21:02 +0100 |
commit | 53e2f9608d1608d9bad7124ef129725dbbb7f9f5 (patch) | |
tree | 19483d88dc1650ee0592d0193ecfbc050de55758 | |
parent | 52b34a698162ec7d2e249b1a75b42c6a4d465146 (diff) |
only count push as available when sm is to avoid race conditions
-rw-r--r-- | src/playstore/java/de/pixart/messenger/services/PushManagementService.java | 2 |
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) { |