The full JID is the bare JID in case there's no resource.
This commit is contained in:
parent
4690b47ae9
commit
989b07725c
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue