From c105e4398f1a21502e27cd7157f870bc7d5efb09 Mon Sep 17 00:00:00 2001 From: diroots Date: Tue, 10 Aug 2021 14:42:40 +0200 Subject: [PATCH] set sharetype with IShare object, not deprecated Share one --- patches/005-autocomplete-user-leak-core.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/005-autocomplete-user-leak-core.patch b/patches/005-autocomplete-user-leak-core.patch index 191de05e..ea8b0f9f 100644 --- a/patches/005-autocomplete-user-leak-core.patch +++ b/patches/005-autocomplete-user-leak-core.patch @@ -73,7 +73,7 @@ diff --git lib/private/Collaboration/Collaborators/MailPlugin.php lib/private/Co + 'name' => $contact['FN'], + 'type' => $emailAddressType ?? '', + 'value' => [ -+ 'shareType' => Share::SHARE_TYPE_EMAIL, ++ 'shareType' => IShare::TYPE_EMAIL, + 'shareWith' => $emailAddress, + ], + ]; @@ -86,7 +86,7 @@ diff --git lib/private/Collaboration/Collaborators/MailPlugin.php lib/private/Co + $result['exact'][] = [ + 'label' => $displayName, + 'value' => [ -+ 'shareType' => Share::SHARE_TYPE_USER, ++ 'shareType' => IShare::TYPE_USER, + 'shareWith' => $emailAddress, + ], + ]; @@ -111,7 +111,7 @@ diff --git lib/private/Collaboration/Collaborators/MailPlugin.php lib/private/Co + 'name' => $contact['FN'], + 'type' => $emailAddressType ?? '', + 'value' => [ -+ 'shareType' => Share::SHARE_TYPE_EMAIL, ++ 'shareType' => IShare::TYPE_EMAIL, + 'shareWith' => $emailAddress, + ], + ]; @@ -124,7 +124,7 @@ diff --git lib/private/Collaboration/Collaborators/MailPlugin.php lib/private/Co + $result['wide'][] = [ + 'label' => $displayName, + 'value' => [ -+ 'shareType' => Share::SHARE_TYPE_USER, ++ 'shareType' => IShare::TYPE_USER, + 'shareWith' => $emailAddress, + ], + ]; -- GitLab