From 989b07725ce56ec48cc41d6dc19512c04edcde1f Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 16 Feb 2011 21:05:57 +0100 Subject: [PATCH] The full JID is the bare JID in case there's no resource. --- src/XMPPJID.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/XMPPJID.m b/src/XMPPJID.m index df23d6f..ebd2170 100644 --- a/src/XMPPJID.m +++ b/src/XMPPJID.m @@ -131,6 +131,10 @@ - (OFString*)fullJID { + /* If we don't have a resource, the full JID is equal to the bare JID */ + if (resource == nil) + return [self bareJID]; + if (node != nil) return [OFString stringWithFormat: @"%@@%@/%@", node, domain, resource];