mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +00:00
Add support for multiple chat sessions in the desktop application (#639)
* Add chat sessions to the desktop application * Increase width of the main chat body to 90vw * Update the version of electron * Render the default message if chat history fails to load * Merge conversation migrations and fix slug setting * Update the welcome message, use the hostURL, and update background color for chat actions * Only update the window's web contents if the page is config
This commit is contained in:
@@ -225,7 +225,8 @@ function pushDataToKhoj (regenerate = false) {
|
||||
.finally(() => {
|
||||
// Syncing complete
|
||||
syncing = false;
|
||||
if (win = BrowserWindow.getAllWindows()[0]) {
|
||||
const win = BrowserWindow.getAllWindows().find(win => win.webContents.getURL().includes('config'));
|
||||
if (win) {
|
||||
win.webContents.send('update-state', state);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user