@@ -347,10 +347,15 @@ - (BOOL)streamOpen { return streamOpen; } + +- (BOOL)rosterVersioningSupported +{ + return rosterVersioningSupported; +} - (BOOL)checkCertificateAndGetReason: (OFString**)reason { X509Certificate *cert; OFDictionary *SANs; @@ -842,10 +847,14 @@ } if (encryptionRequired && !encrypted) /* 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;