Improve contacts search when no scope is set

This commit is contained in:
Francis Lachapelle
2018-01-24 11:58:55 -05:00
parent d05477499f
commit 1528dc4dd0

View File

@@ -148,8 +148,6 @@
NSUInteger max, count;
unsigned int i;
[self saveSortValue];
if (!contactInfos)
{
folder = [self clientObject];
@@ -160,12 +158,10 @@
? NSOrderedAscending : NSOrderedDescending);
searchFields = [data objectForKey: @"search"];
if ([searchFields isKindOfClass: [NSArray class]] && [searchFields count] > 0)
valueText = [data objectForKey: @"value"];
else
valueText = [data objectForKey: @"value"];
if (![searchFields isKindOfClass: [NSArray class]] || ![searchFields count] > 0)
{
searchFields = nil;
valueText = nil;
}
excludeLists = [[data objectForKey: @"excludeLists"] boolValue];