show error notification in connecting state as well

This commit is contained in:
Daniel Gultsch 2016-07-14 23:23:13 +02:00
parent 1db85e582e
commit baa149924a

View file

@ -321,7 +321,9 @@ public class Account extends AbstractEntity {
} }
public boolean hasErrorStatus() { public boolean hasErrorStatus() {
return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 3; return getXmppConnection() != null
&& (getStatus().isError() || getStatus() == State.CONNECTING)
&& getXmppConnection().getAttempt() >= 3;
} }
public void setPresenceStatus(Presence.Status status) { public void setPresenceStatus(Presence.Status status) {