mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-06 19:09:43 +00:00
feat(carddav): fix issue where only personal contacts can be synced on macOS (#1981). When , append the addressbook name as a username suffix to force macOS to treat each book as a distinct account. Usernames must not contain . Install via the provisioning profile. Closes #6033.
This commit is contained in:
@@ -1257,7 +1257,10 @@
|
||||
davCurrentUserPrincipal = nil;
|
||||
else
|
||||
{
|
||||
s = [NSString stringWithFormat: @"/SOGo/dav/%@", login];
|
||||
/* loginAlias preserves the <user>!<book> alias used by the
|
||||
per-addressbook CardDAV profile, so that macOS Contacts keeps
|
||||
using the alias URL instead of falling back on the canonical one. */
|
||||
s = [NSString stringWithFormat: @"/SOGo/dav/%@", [activeUser loginAlias]];
|
||||
userHREF = davElementWithContent (@"href", XMLNS_WEBDAV, s);
|
||||
davCurrentUserPrincipal
|
||||
= [davElementWithContent (@"current-user-principal",
|
||||
|
||||
Reference in New Issue
Block a user