The full JID is the bare JID in case there's no resource.

This commit is contained in:
Jonathan Schleifer 2011-02-16 21:05:57 +01:00
parent 4690b47ae9
commit 989b07725c

View file

@ -131,6 +131,10 @@
- (OFString*)fullJID - (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) if (node != nil)
return [OFString stringWithFormat: @"%@@%@/%@", return [OFString stringWithFormat: @"%@@%@/%@",
node, domain, resource]; node, domain, resource];