refactor: remove unused Electron API check and update search space ID handling in document upload

This commit is contained in:
Anish Sarkar 2026-04-03 02:56:24 +05:30
parent e0b35cfbab
commit 530db10539
7 changed files with 100 additions and 101 deletions

View file

@ -48,7 +48,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
getPendingFileEvents: () => ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_GET_PENDING_EVENTS),
acknowledgeFileEvents: (eventIds: string[]) => ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_ACK_EVENTS, eventIds),
// Unified browse (files + folders)
browseFileOrFolder: () => ipcRenderer.invoke(IPC_CHANNELS.BROWSE_FILE_OR_FOLDER),
// Browse files via native dialog
browseFiles: () => ipcRenderer.invoke(IPC_CHANNELS.BROWSE_FILES),
readLocalFiles: (paths: string[]) => ipcRenderer.invoke(IPC_CHANNELS.READ_LOCAL_FILES, paths),
});