Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bf6b139 authored by Akhil's avatar Akhil 🙂
Browse files

fix: remove unnecessary changes from autocomplete leak patch

parent 055e633e
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -14,25 +14,6 @@ this filtering works in conjunction with the autocomplete feature disabled in ne
diff --git lib/private/Collaboration/Collaborators/UserPlugin.php lib/private/Collaboration/Collaborators/UserPlugin-new.php
--- lib/private/Collaboration/Collaborators/UserPlugin.php	2025-02-13 19:30:40
+++ lib/private/Collaboration/Collaborators/UserPlugin-new.php	2025-03-07 12:48:50
@@ -49,7 +49,7 @@
 
 			if (!$shareeEnumerationRestrictToGroup && !$shareeEnumerationRestrictToPhone) {
 				// No restrictions, search everything.
-				$usersByDisplayName = $this->userManager->searchDisplayName($search, $limit, $offset);
+				$usersByDisplayName = [];
 				foreach ($usersByDisplayName as $user) {
 					if ($user->isEnabled()) {
 						$users[$user->getUID()] = ['wide', $user];
@@ -70,7 +70,7 @@
 				}
 
 				if ($shareeEnumerationRestrictToPhone) {
-					$usersInPhonebook = $this->userManager->searchKnownUsersByDisplayName($currentUser->getUID(), $search, $limit, $offset);
+					$usersInPhonebook = [];
 					foreach ($usersInPhonebook as $user) {
 						if ($user->isEnabled()) {
 							$users[$user->getUID()] = ['wide', $user];
@@ -90,7 +90,7 @@
 			$lowerSearch = mb_strtolower($search);
 
 			// Re-use the results from earlier if possible