From f247abc2dc1aa7d19c8cd616f4654fc3a8d8109d Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Mon, 11 Aug 2014 13:46:32 +0200 Subject: handle bare jid presences. fixes for otr --- src/eu/siacs/conversations/entities/Message.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eu/siacs/conversations/entities') diff --git a/src/eu/siacs/conversations/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java index 3fe20707..17b4e5b8 100644 --- a/src/eu/siacs/conversations/entities/Message.java +++ b/src/eu/siacs/conversations/entities/Message.java @@ -224,7 +224,7 @@ public class Message extends AbstractEntity { } public void setPresence(String presence) { - if (presence == null) { + if (presence == null || presence.isEmpty()) { this.counterpart = this.counterpart.split("/")[0]; } else { this.counterpart = this.counterpart.split("/")[0] + "/" + presence; -- cgit v1.2.3