Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(carddav): Map user's additional emails into the SAB card #38073

Merged

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented May 4, 2023

Summary

The system address book (SAB) only contains the user's primary email address. With this change additional email addresses get saved to the card as well.

Right now only additional email addresses set to federated or published are saved. With #38048 local ones will be saved too.

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -44,7 +46,13 @@
}

public function createCardFromUser(IUser $user): ?VCard {
$userProperties = $this->accountManager->getAccount($user)->getProperties();
$account = $this->accountManager->getAccount($user);
$userProperties = $account->getProperties();

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OCP\Accounts\IAccount::getProperties has been marked as deprecated
@ChristophWurst ChristophWurst added this to the Nextcloud 27 milestone May 4, 2023
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 4, 2023
@ChristophWurst ChristophWurst merged commit d2606a9 into master May 4, 2023
@ChristophWurst ChristophWurst deleted the feat/caldav/map-additional-emails-system-addres-book branch May 4, 2023 21:50
This was referenced May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: carddav Related to CardDAV internals
Projects
Development

Successfully merging this pull request may close these issues.

Write profile properties and backend properties to system address book
3 participants