1414use OCP \AppFramework \Http \Attribute \NoAdminRequired ;
1515use OCP \AppFramework \Http \DataResponse ;
1616use OCP \AppFramework \OCSController ;
17- use OCP \Collaboration \AutoComplete \AutoCompleteEvent ;
1817use OCP \Collaboration \AutoComplete \AutoCompleteFilterEvent ;
1918use OCP \Collaboration \AutoComplete \IManager ;
2019use OCP \Collaboration \Collaborators \ISearch ;
@@ -42,7 +41,7 @@ public function __construct(
4241 * @param string $search Text to search for
4342 * @param string|null $itemType Type of the items to search for
4443 * @param string|null $itemId ID of the items to search for
45- * @param string|null $sorter can be piped, top prio first, e.g.: "commenters|share-recipients"
44+ * @param string|null $sorter can be piped, top prior first, e.g.: "commenters|share-recipients"
4645 * @param list<int> $shareTypes Types of shares to search for
4746 * @param int $limit Maximum number of results to return
4847 *
@@ -57,18 +56,6 @@ public function get(string $search, ?string $itemType, ?string $itemId, ?string
5756 // result from search() – thus nothing else to do here.
5857 [$ results ,] = $ this ->collaboratorSearch ->search ($ search , $ shareTypes , false , $ limit , 0 );
5958
60- $ event = new AutoCompleteEvent ([
61- 'search ' => $ search ,
62- 'results ' => $ results ,
63- 'itemType ' => $ itemType ,
64- 'itemId ' => $ itemId ,
65- 'sorter ' => $ sorter ,
66- 'shareTypes ' => $ shareTypes ,
67- 'limit ' => $ limit ,
68- ]);
69- $ this ->dispatcher ->dispatch (IManager::class . '::filterResults ' , $ event );
70- $ results = $ event ->getResults ();
71-
7259 $ event = new AutoCompleteFilterEvent (
7360 $ results ,
7461 $ search ,
0 commit comments