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

Signed-off-by: greta <gretadoci@gmail.com>
This commit is contained in:
greta 2023-05-25 10:01:49 +02:00 committed by Arthur Schiwon
parent 0a876e3ac8
commit e44cd0f080

View file

@ -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:
// structured prop: https://www.rfc-editor.org/rfc/rfc6350.html#section-6.3.1