diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-11-09 16:21:13 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-11-09 16:21:13 +0100 |
commit | 377bd49ee807b9a06089ad5612ca15b9b00f2e36 (patch) | |
tree | 225e53c77c11377b4e64d65b5f33cf9c0c0858e6 /src/main/java/eu/siacs/conversations/entities/Message.java | |
parent | 2b99b694eb25ed6ea82563d8a352be774ecc88d2 (diff) |
refactored code to always contain full jid for counterpart
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities/Message.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index f15b7527..550474bb 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -232,27 +232,10 @@ public class Message extends AbstractEntity { return this.type; } - public void setPresence(String presence) { - if (presence == null) { - this.counterpart = this.counterpart.toBareJid(); - } else { - try { - this.counterpart = Jid.fromString(this.counterpart.toBareJid() + "/" + presence); - } catch (final InvalidJidException ignored) { - // TODO: Handle this? - } - } - } - public void setTrueCounterpart(String trueCounterpart) { this.trueCounterpart = trueCounterpart; } - public Jid getPresence() { - // TODO: This is now the same as getCounterpart()... find usages in code and remove one? - return counterpart; - } - public void setDownloadable(Downloadable downloadable) { this.downloadable = downloadable; } |