aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/Contact.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-23 21:33:37 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-23 21:33:37 +0100
commitbfee69b00b2762a910f7f3f1714d18fddc99a9ad (patch)
tree56b370ae05bff9174ceeb4c7423d90c2d5bb8406 /src/de/gultsch/chat/entities/Contact.java
parent4bffb4d94db6d32d8e98b8241402cb5e51a879e7 (diff)
add contact to roster if a new conversation is created
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/entities/Contact.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/entities/Contact.java b/src/de/gultsch/chat/entities/Contact.java
index a01e20b0..a0dbf22f 100644
--- a/src/de/gultsch/chat/entities/Contact.java
+++ b/src/de/gultsch/chat/entities/Contact.java
@@ -38,6 +38,8 @@ public class Contact extends AbstractEntity implements Serializable {
protected Presences presences = new Presences();
protected Account account;
+
+ protected boolean inRoster = true;
public Contact(Account account, String displayName, String jid,
String photoUri) {
@@ -262,4 +264,13 @@ public class Contact extends AbstractEntity implements Serializable {
public static final int ASKING = 2;
public static final int PREEMPTIVE_GRANT = 4;
}
+
+
+ public void flagAsNotInRoster() {
+ this.inRoster = false;
+ }
+
+ public boolean isInRoster() {
+ return this.inRoster;
+ }
}