From bf9207456e7523c2d18f1f9fa007542b5d0e10ea Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Thu, 6 Nov 2014 14:33:13 -0500 Subject: Update another chunk of stuff to use JID objects --- src/main/java/eu/siacs/conversations/entities/Message.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/main/java/eu/siacs/conversations/entities') diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index ce21addc8..53df1ddfc 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -248,13 +248,8 @@ public class Message extends AbstractEntity { this.trueCounterpart = trueCounterpart; } - public String getPresence() { - if (!counterpart.getResourcepart().isEmpty()) { - return counterpart.getResourcepart(); - } else { - // TODO: Return empty string or null? - return null; - } + public Jid getPresence() { + return counterpart; } public void setDownloadable(Downloadable downloadable) { -- cgit v1.2.3