aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-26 13:46:47 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-30 10:19:36 +0100
commitcb463d73d5b4955935d4a0c0f4782d1a23472e2d (patch)
tree0b65851a96e15771738caabfa1e8e8644f58b9a4
parentf116461d4b435b28cd62c3c121a33108e8812e56 (diff)
downloadnextcloud-server-cb463d73d5b4955935d4a0c0f4782d1a23472e2d.tar.gz
nextcloud-server-cb463d73d5b4955935d4a0c0f4782d1a23472e2d.zip
Add name field to mail and remote results
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php4
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 1d0738677bb..1ac681c8948 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -127,6 +127,7 @@ class MailPlugin implements ISearchPlugin {
$singleResult = [[
'label' => $displayName,
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'value' => [
'shareType' => Share::SHARE_TYPE_USER,
'shareWith' => $cloud->getUser(),
@@ -149,6 +150,7 @@ class MailPlugin implements ISearchPlugin {
$userResults['wide'][] = [
'label' => $displayName,
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'value' => [
'shareType' => Share::SHARE_TYPE_USER,
'shareWith' => $cloud->getUser(),
@@ -168,6 +170,7 @@ class MailPlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $displayName,
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'type' => $emailAddressType,
'value' => [
'shareType' => Share::SHARE_TYPE_EMAIL,
@@ -178,6 +181,7 @@ class MailPlugin implements ISearchPlugin {
$result['wide'][] = [
'label' => $displayName,
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'type' => $emailAddressType,
'value' => [
'shareType' => Share::SHARE_TYPE_EMAIL,
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index abe99125512..0eab02ab0fa 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -109,6 +109,7 @@ class RemotePlugin implements ISearchPlugin {
$result['exact'][] = [
'label' => $contact['FN'] . " ($cloudId)",
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'type' => $cloudIdType,
'value' => [
'shareType' => Share::SHARE_TYPE_REMOTE,
@@ -120,6 +121,7 @@ class RemotePlugin implements ISearchPlugin {
$result['wide'][] = [
'label' => $contact['FN'] . " ($cloudId)",
'uuid' => $contact['UID'],
+ 'name' => $contact['FN'],
'type' => $cloudIdType,
'value' => [
'shareType' => Share::SHARE_TYPE_REMOTE,