From e44cd0f080f968a970c447bea72f6f18ae1b34f4 Mon Sep 17 00:00:00 2001 From: greta Date: Thu, 25 May 2023 10:01:49 +0200 Subject: [PATCH] fix(carddav): Make system contact phone number RFC compliant Signed-off-by: greta --- apps/dav/lib/CardDAV/Converter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php index 254c8015acf61..b3d8b094d6931 100644 --- a/apps/dav/lib/CardDAV/Converter.php +++ b/apps/dav/lib/CardDAV/Converter.php @@ -89,7 +89,7 @@ public function createCardFromUser(IUser $user): ?VCard { $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