From 9b04cda8972629c6fef0eb2dc42ce1088b632e11 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 5 Oct 2023 16:41:37 +0200 Subject: [PATCH] MOBILE-3371 search: Fix disabled feature --- src/core/features/search/services/global-search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/search/services/global-search.ts b/src/core/features/search/services/global-search.ts index b7728e195..33f553ff7 100644 --- a/src/core/features/search/services/global-search.ts +++ b/src/core/features/search/services/global-search.ts @@ -101,7 +101,7 @@ export class CoreSearchGlobalSearchService { ? await CoreSites.getSite(siteId) : CoreSites.getRequiredCurrentSite(); - return !site?.isFeatureDisabled('CoreNoDelegate_GlobalSearch') + return !site?.isFeatureDisabled('NoDelegate_GlobalSearch') && site?.wsAvailable('core_search_get_results') // @since 4.3 && site?.canUseAdvancedFeature('enableglobalsearch'); }