only count push as available when sm is to avoid race conditions
This commit is contained in:
parent
7317f5015a
commit
f60dd98d3c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue