From 4f75735c7ee7a7bfeb89e8eef74e3fe325949270 Mon Sep 17 00:00:00 2001
From: Avinash Gusain <avinashg@e.email>
Date: Fri, 12 Jan 2024 19:11:55 +0530
Subject: [PATCH] sharing search not searching by email

---
 .../Settings/SettingsAddressbookShare.vue           | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue b/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue
index 05b248936..da2765600 100644
--- a/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue
+++ b/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue
@@ -31,6 +31,7 @@
 			:placeholder="placeholder"
 			:class="{ 'showContent': inputGiven, 'icon-loading': isLoading }"
 			:user-select="true"
+			:filter-by="filterResults"
 			open-direction="bottom"
 			track-by="user"
 			label="displayName"
@@ -107,6 +108,18 @@ export default {
 		shareAddressbook({ user, displayName, uri, isGroup }) {
 			this.$store.dispatch('shareAddressbook', { addressbook: this.addressbook, user, displayName, uri, isGroup })
 		},
+		/**
+		 * Function to filter results in NcSelect
+		 *
+		 * @param {object} option
+		 * @param {string} label
+		 * @param {string} search
+		 */
+		/* eslint-disable @typescript-eslint/no-unused-vars */
+		filterResults(option, label, search) {
+			return true
+		},
+		/* eslint-enable @typescript-eslint/no-unused-vars */
 
 		/**
 		 * Use the cdav client call to find matches to the query from the existing Users & Groups