mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
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 New Issue
Block a user