From 098a8e4fb1c78f62bf42f47713deeb441d57d6b0 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 25 Jan 2024 18:04:29 +0530 Subject: [PATCH] Fix evaluating connected to server status in Obsidian plugin Only show welcome status message when khojApiKey not set and khojUrl set to khoj cloud --- src/interface/obsidian/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/obsidian/src/utils.ts b/src/interface/obsidian/src/utils.ts index 829a0604..5c1061bd 100644 --- a/src/interface/obsidian/src/utils.ts +++ b/src/interface/obsidian/src/utils.ts @@ -157,7 +157,7 @@ export function getBackendStatusMessage( khojApiKey: string ): string { // Welcome message with default settings. Khoj cloud always expects an API key. - if (!!khojApiKey && khojUrl === 'https://app.khoj.dev') + if (!khojApiKey && khojUrl === 'https://app.khoj.dev') return `🌈 Welcome to Khoj! Get your API key from ${khojUrl}/config#clients and set it in the Khoj plugin settings on Obsidian`; if (!connectedToServer)