Fix evaluating connected to server status in Obsidian plugin

Only show welcome status message when khojApiKey not set and khojUrl
set to khoj cloud
This commit is contained in:
Debanjum Singh Solanky
2024-01-25 18:04:29 +05:30
parent 518f3c0c99
commit 098a8e4fb1

View File

@@ -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)