mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-16 08:55:24 +00:00
fix(addressbook): generate UID when importing cards if missing
Fixes #5386
This commit is contained in:
@@ -370,6 +370,11 @@ static NSArray *photoTags = nil;
|
||||
|
||||
// TODO: shall we add .vcf as in [SOGoContactGCSEntry copyToFolder:]
|
||||
uid = [card uid];
|
||||
if (![uid length])
|
||||
{
|
||||
uid = [folder globallyUniqueObjectId];
|
||||
[card setUid: uid];
|
||||
}
|
||||
contact = [SOGoContactGCSEntry objectWithName: uid
|
||||
inContainer: folder];
|
||||
[contact setIsNew: YES];
|
||||
|
||||
Reference in New Issue
Block a user