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