diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-07-14 23:23:13 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-07-14 23:23:13 +0200 |
commit | baa149924aad7d777358df279346d9b3a2e7090b (patch) | |
tree | 9f6d89d2126a2f594a3ec4755e519d461faa60bf | |
parent | 1db85e582e1a4205138f77a82d85f0508f45a35b (diff) |
show error notification in connecting state as well
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Account.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Account.java b/src/main/java/eu/siacs/conversations/entities/Account.java index 446c2e0c..6c5fdd21 100644 --- a/src/main/java/eu/siacs/conversations/entities/Account.java +++ b/src/main/java/eu/siacs/conversations/entities/Account.java @@ -321,7 +321,9 @@ public class Account extends AbstractEntity { } 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) { |