aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-23 12:32:34 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-23 12:32:34 +0100
commitf7fea5a35adae306326de57da22420c52bfc4517 (patch)
treec0ec45e360dac387271023cea956a0c800aad4ed /src/main/java/de/pixart/messenger/entities
parent7d584fbee00a5a74fbd14df6a9a98a47e112304e (diff)
refresh contacts when opening StartConversationsActivity
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r--src/main/java/de/pixart/messenger/entities/Account.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Account.java b/src/main/java/de/pixart/messenger/entities/Account.java
index 9e3711535..412960e48 100644
--- a/src/main/java/de/pixart/messenger/entities/Account.java
+++ b/src/main/java/de/pixart/messenger/entities/Account.java
@@ -73,6 +73,7 @@ public class Account extends AbstractEntity {
protected String password;
protected int options = 0;
protected State status = State.OFFLINE;
+ private State lastErrorStatus = State.OFFLINE;
protected String resource;
protected String avatar;
protected String hostname = null;
@@ -271,8 +272,15 @@ public class Account extends AbstractEntity {
}
}
+ public State getLastErrorStatus() {
+ return this.lastErrorStatus;
+ }
+
public void setStatus(final State status) {
this.status = status;
+ if (status.isError) {
+ this.lastErrorStatus = status;
+ }
}
public State getTrueStatus() {