diff --git a/apps/settings/js/federationsettingsview.js b/apps/settings/js/federationsettingsview.js
index f5c7af8637a5a..f20ad8e0ecdfd 100644
--- a/apps/settings/js/federationsettingsview.js
+++ b/apps/settings/js/federationsettingsview.js
@@ -130,7 +130,8 @@
field === 'avatar' ||
field === 'email' ||
field === 'displayname' ||
- field === 'twitter'
+ field === 'twitter' ||
+ field === 'phone'
) {
return;
}
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php
index df1608e01d92e..4f1ee1fa792ec 100644
--- a/apps/settings/lib/Settings/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php
@@ -147,8 +147,6 @@ public function getForm(): TemplateResponse {
'federationEnabled' => $federationEnabled,
'lookupServerUploadEnabled' => $lookupServerUploadEnabled,
'avatarScope' => $account->getProperty(IAccountManager::PROPERTY_AVATAR)->getScope(),
- 'phone' => $account->getProperty(IAccountManager::PROPERTY_PHONE)->getValue(),
- 'phoneScope' => $account->getProperty(IAccountManager::PROPERTY_PHONE)->getScope(),
'address' => $account->getProperty(IAccountManager::PROPERTY_ADDRESS)->getValue(),
'addressScope' => $account->getProperty(IAccountManager::PROPERTY_ADDRESS)->getScope(),
'website' => $account->getProperty(IAccountManager::PROPERTY_WEBSITE)->getValue(),
@@ -162,6 +160,7 @@ public function getForm(): TemplateResponse {
$personalInfoParameters = [
'userId' => $uid,
'displayName' => $this->getProperty($account, IAccountManager::PROPERTY_DISPLAYNAME),
+ 'phone' => $this->getProperty($account, IAccountManager::PROPERTY_PHONE),
'twitter' => $this->getProperty($account, IAccountManager::PROPERTY_TWITTER),
'emailMap' => $this->getEmailMap($account),
'languageMap' => $this->getLanguageMap($user),
diff --git a/apps/settings/src/components/PersonalInfo/PhoneSection.vue b/apps/settings/src/components/PersonalInfo/PhoneSection.vue
new file mode 100644
index 0000000000000..a92a31dd9b048
--- /dev/null
+++ b/apps/settings/src/components/PersonalInfo/PhoneSection.vue
@@ -0,0 +1,51 @@
+
+
+
+