From bea4545abffe738dfeb025b36817490c1b5fa61d Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 2 Oct 2022 11:00:52 +0200 Subject: [PATCH] don't call search on a disabled msg provider A provider might be available, but not functional (broken migration invalid configuration or what have you). Don't try to call search in this case. --- server/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/client.ts b/server/client.ts index 39b8bacb..eec9ad90 100644 --- a/server/client.ts +++ b/server/client.ts @@ -619,7 +619,7 @@ class Client { } search(query: SearchQuery) { - if (this.messageProvider === undefined) { + if (!this.messageProvider?.isEnabled) { return Promise.resolve({ results: [], target: "",