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

Commit 1b9932cd authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/contactsmenu-errors' into 'main'

Contacts menu errors affecting unified search

See merge request !301
parents 64d868f4 f90dc04a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ diff --git ContactsMenuController.php ContactsMenuController-new.php
 	#[FrontpageRoute(verb: 'POST', url: '/contactsmenu/contacts')]
 	public function index(?string $filter = null): array {
-		return $this->manager->getEntries($this->userSession->getUser(), $filter);
+		return [];
+		return ['contactsEnabled' => \OC::$server->getAppManager()->isEnabledForUser('contacts', $this->userSession->getUser()), 'contacts' => []];
 	}
 
 	/**