Detect support for roster versioning.
This commit is contained in:
parent
af04bf7088
commit
f6c537a9e9
3 changed files with 18 additions and 5 deletions
|
@ -350,6 +350,11 @@
|
|||
return streamOpen;
|
||||
}
|
||||
|
||||
- (BOOL)rosterVersioningSupported
|
||||
{
|
||||
return rosterVersioningSupported;
|
||||
}
|
||||
|
||||
- (BOOL)checkCertificateAndGetReason: (OFString**)reason
|
||||
{
|
||||
X509Certificate *cert;
|
||||
|
@ -845,6 +850,10 @@
|
|||
/* TODO: Find/create an exception to throw here */
|
||||
@throw [OFException exceptionWithClass: isa];
|
||||
|
||||
if ([element elementForName: @"ver"
|
||||
namespace: XMPP_NS_ROSTERVER] != nil)
|
||||
rosterVersioningSupported = YES;
|
||||
|
||||
if (mechs != nil) {
|
||||
OFEnumerator *enumerator;
|
||||
OFXMLElement *mech;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue