From 193dd0f9e3e8e8b76a2e16be942fe4b1dbbba37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 8 Jun 2020 16:41:15 +0200 Subject: [PATCH] main: Add an event index IPC method to check if a room is being indexed. --- src/electron-main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/electron-main.js b/src/electron-main.js index 8843f68..9993eb3 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -468,6 +468,11 @@ ipcMain.on('seshat', async function(ev, payload) { else ret = await eventIndex.isEmpty(); break; + case 'isRoomIndexed': + if (eventIndex === null) ret = false; + else ret = await eventIndex.isRoomIndexed(args[0]); + break; + case 'addEventToIndex': try { eventIndex.addEvent(args[0], args[1]);