main: Add an event index IPC method to check if a room is being indexed.

This commit is contained in:
Damir Jelić 2020-06-08 16:41:15 +02:00
parent f9c8aa1753
commit 193dd0f9e3

View File

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