Skip to content

Commit

Permalink
Don't import old roster if we got a complete roster by the server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Midar committed Feb 6, 2012
1 parent 2cae99e commit d8dbb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XMPPRoster.m
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ - (void)XMPP_handleInitialRosterForConnection: (XMPPConnection*)connection_
rosterElement = [iq elementForName: @"query"
namespace: XMPP_NS_ROSTER];

if ([connection supportsRosterVersioning]) {
if ([connection supportsRosterVersioning] && rosterElement == nil) {
OFDictionary *items = [dataStorage
dictionaryForPath: @"roster.items"];
OFEnumerator *enumerator = [items objectEnumerator];
Expand Down

0 comments on commit d8dbb5a

Please sign in to comment.