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

Commit 3e4e0781 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/remove-system-addressbook' into 'murena-main'

Remove system addressbook

See merge request !46
parents 9fa07714 47628871
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -120,7 +120,11 @@ class ContactController extends Controller {
		if (!$this->contactsManager->isEnabled()) {
			return new JSONResponse();
		}

		foreach($this->contactsManager->getUserAddressBooks() as $addressBook) {
			if($addressBook->isSystemAddressBook()) {
				$this->contactsManager->unregisterAddressBook($addressBook);
			}
		}
		$result = $this->contactsManager->search($search, ['FN', 'EMAIL']);

		$contacts = [];