Detect support for roster versioning.

This commit is contained in:
Jonathan Schleifer 2012-02-06 14:49:37 +01:00
parent af04bf7088
commit f6c537a9e9
3 changed files with 18 additions and 5 deletions

View file

@ -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;