mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
fix(contacts): c_cn could be null whereas it isn't
This commit is contained in:
1 parent
3acab3f896
commit
6aab869b81
1 file changed
+3
-4
@@ -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