mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
fix(addressbook): generate UID when importing cards if missing
Fixes #5386
This commit is contained in:
1 parent
a6a3f2fb88
commit
7b5cddcf2d
1 file changed
+5
@@ -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