Add support for requesting a certain resource
This commit is contained in:
parent
6dc9e5e217
commit
4cd1853729
1 changed files with 6 additions and 2 deletions
|
@ -207,8 +207,12 @@
|
|||
- (void)_sendResourceBind
|
||||
{
|
||||
XMPPIQ *iq = [XMPPIQ IQWithType: @"set" ID: @"bind0"];
|
||||
[iq addChild: [OFXMLElement elementWithName: @"bind"
|
||||
namespace: NS_BIND]];
|
||||
OFXMLElement *bind = [OFXMLElement elementWithName: @"bind"
|
||||
namespace: NS_BIND];
|
||||
if (resource)
|
||||
[bind addChild: [OFXMLElement elementWithName: @"resource"
|
||||
stringValue: resource]];
|
||||
[iq addChild: bind];
|
||||
|
||||
[self sendStanza: iq];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue