only count push as available when sm is to avoid race conditions

This commit is contained in:
Daniel Gultsch 2017-02-08 16:52:35 +01:00
parent 7317f5015a
commit f60dd98d3c

View File

@ -103,7 +103,10 @@ 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) {