From baa149924aad7d777358df279346d9b3a2e7090b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 14 Jul 2016 23:23:13 +0200 Subject: [PATCH] show error notification in connecting state as well --- src/main/java/eu/siacs/conversations/entities/Account.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Account.java b/src/main/java/eu/siacs/conversations/entities/Account.java index 446c2e0c7..6c5fdd21b 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) {