mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
Simplify [UIxContactEditor addressBookDisplayName]
We were trying to translate the default address book name to the user's language, but the method [SOGoContactFolders defaultFolderName] is already returning a translated string, making the whole logic useless.
This commit is contained in:
@@ -219,17 +219,7 @@ static Class SOGoContactGCSEntryK = Nil;
|
||||
|
||||
- (NSString *) addressBookDisplayName
|
||||
{
|
||||
NSString *fDisplayName;
|
||||
SOGoObject <SOGoContactFolder> *folder;
|
||||
SOGoContactFolders *parentFolder;
|
||||
|
||||
fDisplayName = [addressBookItem displayName];
|
||||
folder = [[self clientObject] container];
|
||||
parentFolder = [folder container];
|
||||
if ([fDisplayName isEqualToString: [parentFolder defaultFolderName]])
|
||||
fDisplayName = [self labelForKey: fDisplayName];
|
||||
|
||||
return fDisplayName;
|
||||
return [addressBookItem displayName];
|
||||
}
|
||||
|
||||
- (BOOL) supportCategories
|
||||
|
||||
Reference in New Issue
Block a user