diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-06 11:39:17 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-06 11:39:17 +0200 |
commit | 5fe926b64586f5ac7d3eba7a64de81a710437a14 (patch) | |
tree | 84f720295ece0ede1e13f53f06bc7aaa9b044786 /src/eu/siacs/conversations/entities/Message.java | |
parent | a583471af843e1b1682d36efee04caa5767419ea (diff) |
basic last seen feature. no peristancy just yet. no polish
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/Message.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java index cc6bc7c2..c298a652 100644 --- a/src/eu/siacs/conversations/entities/Message.java +++ b/src/eu/siacs/conversations/entities/Message.java @@ -203,6 +203,15 @@ public class Message extends AbstractEntity { this.counterpart = this.counterpart.split("/")[0] + "/" + presence; } + public String getPresence() { + String[] counterparts = this.counterpart.split("/"); + if (counterparts.length == 2) { + return counterparts[1]; + } else { + return null; + } + } + public void setJingleConnection(JingleConnection connection) { this.jingleConnection = connection; } |