fix(carddav): Make system contact phone number RFC compliant

Signed-off-by: greta <gretadoci@gmail.com>
pull/38454/head
greta 2023-05-25 10:01:49 +07:00
parent e6038268d8
commit 50b61c8b7b
1 changed files with 1 additions and 1 deletions

@ -89,7 +89,7 @@ class Converter {
$vCard->add(new Text($vCard, 'URL', $property->getValue(), ['X-NC-SCOPE' => $scope]));
break;
case IAccountManager::PROPERTY_PHONE:
$vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'OTHER', 'X-NC-SCOPE' => $scope]));
$vCard->add(new Text($vCard, 'TEL', $property->getValue(), ['TYPE' => 'VOICE', 'X-NC-SCOPE' => $scope]));
break;
case IAccountManager::PROPERTY_ADDRESS:
$vCard->add(new Text($vCard, 'ADR', $property->getValue(), ['TYPE' => 'OTHER', 'X-NC-SCOPE' => $scope]));