306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
OFEnumerator *enumerator;
OFXMLElement *element;
XMPPRosterItem *rosterItem;
rosterElement = [iq elementForName: @"query"
namespace: XMPP_NS_ROSTER];
if ([connection supportsRosterVersioning]) {
OFDictionary *items = [dataStorage
dictionaryForPath: @"roster.items"];
OFEnumerator *enumerator = [items objectEnumerator];
OFDictionary *item;
while ((item = [enumerator nextObject]) != nil) {
rosterItem = [XMPPRosterItem rosterItem];
|
|
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
OFEnumerator *enumerator;
OFXMLElement *element;
XMPPRosterItem *rosterItem;
rosterElement = [iq elementForName: @"query"
namespace: XMPP_NS_ROSTER];
if ([connection supportsRosterVersioning] && rosterElement == nil) {
OFDictionary *items = [dataStorage
dictionaryForPath: @"roster.items"];
OFEnumerator *enumerator = [items objectEnumerator];
OFDictionary *item;
while ((item = [enumerator nextObject]) != nil) {
rosterItem = [XMPPRosterItem rosterItem];
|