mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-18 18:05:36 +00:00
fix(contacts): c_cn could be null whereas it isn't
This commit is contained in:
@@ -254,12 +254,11 @@
|
||||
|
||||
// displayname || c_cn => fn
|
||||
data = [oldRecord objectForKey: @"displayname"];
|
||||
if (!data)
|
||||
if(!data || data == [NSNull null] || [data length] < 1)
|
||||
data = [oldRecord objectForKey: @"c_cn"];
|
||||
if (data)
|
||||
[newRecord setObject: data forKey: @"fn"];
|
||||
else
|
||||
if(!data || data == [NSNull null] || [data length] < 1)
|
||||
data = @"";
|
||||
[newRecord setObject: data forKey: @"fn"];
|
||||
[newRecord setObject: data forKey: @"c_cn"];
|
||||
|
||||
// sn => c_sn
|
||||
|
||||
Reference in New Issue
Block a user