electron-main: Add support to delete events from the index.

This commit is contained in:
Damir Jelić 2020-03-12 11:46:14 +01:00
parent 3509d3d5af
commit 23bfa9262e

View File

@ -427,6 +427,15 @@ ipcMain.on('seshat', async function(ev, payload) {
}
break;
case 'deleteEvent':
try {
ret = await eventIndex.deleteEvent(args[0]);
} catch (e) {
sendError(payload.id, e);
return;
}
break;
case 'commitLiveEvents':
try {
ret = await eventIndex.commit();