mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
main: Add an event index IPC method to check if a room is being indexed.
This commit is contained in:
parent
f9c8aa1753
commit
193dd0f9e3
@ -468,6 +468,11 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
else ret = await eventIndex.isEmpty();
|
else ret = await eventIndex.isEmpty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'isRoomIndexed':
|
||||||
|
if (eventIndex === null) ret = false;
|
||||||
|
else ret = await eventIndex.isRoomIndexed(args[0]);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'addEventToIndex':
|
case 'addEventToIndex':
|
||||||
try {
|
try {
|
||||||
eventIndex.addEvent(args[0], args[1]);
|
eventIndex.addEvent(args[0], args[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user