X-Git-Url: https://code.grnet.gr/git/pithos-macos/blobdiff_plain/b83af7823f40a2a25fa369490ca67e892c920ce4..eebb5f0221cec27f742457b82cce899803e4952d:/pithos-macos/PithosSharingAccountsNode.m diff --git a/pithos-macos/PithosSharingAccountsNode.m b/pithos-macos/PithosSharingAccountsNode.m index a04650d..b03192d 100644 --- a/pithos-macos/PithosSharingAccountsNode.m +++ b/pithos-macos/PithosSharingAccountsNode.m @@ -41,6 +41,7 @@ #import "ASIPithos.h" #import "ASIPithosAccount.h" #import "ASIDownloadCache.h" +#import "PithosAccount.h" #import "PithosUtilities.h" #import "PithosActivityFacility.h" @@ -184,13 +185,16 @@ DLog(@"using newChildren"); newChildren = [[NSMutableArray alloc] init]; NSMutableIndexSet *keptNodes = [NSMutableIndexSet indexSet]; + NSMutableArray *sharingAccountsNames = [NSMutableArray arrayWithCapacity:sharingAccounts.count]; for (ASIPithosAccount *account in sharingAccounts) { + [sharingAccountsNames addObject:account.name]; if (![account.name isEqualToString:pithos.authUser]) { PithosAccountNode *node = [[PithosAccountNode alloc] initWithPithos:pithos]; node.parent = self; node.shared = shared; node.sharingAccount = account.name; node.inheritChildrenUpdatedNotificationName = inheritChildrenUpdatedNotificationName; + node.pithosAccountManager = pithosAccountManager; if (children) { NSUInteger oldIndex = [children indexOfObject:node]; if (oldIndex != NSNotFound) { @@ -202,6 +206,7 @@ [newChildren addObject:node]; } } + [pithosAccountManager updateUserCatalogForForDisplaynames:nil UUIDs:sharingAccountsNames]; [[children objectsAtIndexes: [[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [children count])] indexesPassingTest:^(NSUInteger idx, BOOL *stop){ if ([keptNodes containsIndex:idx])