Merge remote-tracking branch 'origin/poljar/eventindex-newly-encrypted-room' into develop

This commit is contained in:
Damir Jelić 2020-06-19 09:54:19 +02:00
commit c1646e882a

View File

@ -505,6 +505,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]);