mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-14 03:11:24 +00:00
Improve contacts search when no scope is set
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user