aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/xmpp/jid
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xmpp/jid')
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/jid/Jid.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/jid/Jid.java b/src/main/java/eu/siacs/conversations/xmpp/jid/Jid.java
index 7a1e1f1b4..0afd91027 100644
--- a/src/main/java/eu/siacs/conversations/xmpp/jid/Jid.java
+++ b/src/main/java/eu/siacs/conversations/xmpp/jid/Jid.java
@@ -162,6 +162,10 @@ public final class Jid {
return result;
}
+ public boolean hasLocalPart() {
+ return !localpart.isEmpty();
+ }
+
public boolean isBareJid() {
return this.resourcepart.isEmpty();
}