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

Commit cfd0d203 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

removed caldav apicall

parent cbb6e22d
Loading
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -107,12 +107,10 @@ export default {
			if (query.length > 0) {
				const promises = [
					this.findAttendeesFromContactsAPI(query),
					this.findAttendeesFromDAV(query),
				]

				const [contactsResults, davResults] = await Promise.all(promises)
				const [contactsResults] = await Promise.all(promises)
				matches.push(...contactsResults)
				matches.push(...davResults)

				// Source of the Regex: https://stackoverflow.com/a/46181
				// eslint-disable-next-line
@@ -211,10 +209,6 @@ export default {
					return false
				}

				// filter the result set emails not having the searched string
				if (!principal.email.includes(query)) {
					return false
				}
				if (this.alreadyInvitedEmails.includes(principal.email)) {
					return false
				}