EventIndex: Check if a newly encrypted room is indexed before adding a checkpoint.

This commit is contained in:
Damir Jelić 2020-06-08 16:43:20 +02:00
parent ea35fc2881
commit 7a2bb4b112
2 changed files with 38 additions and 8 deletions

View file

@ -134,6 +134,19 @@ export default abstract class BaseEventIndexManager {
throw new Error("Unimplemented");
}
/**
* Check if the room with the given id is already indexed.
*
* @param {string} roomId The ID of the room which we want to check if it
* has been already indexed.
*
* @return {Promise<boolean>} Returns true if the index contains events for
* the given room, false otherwise.
*/
isRoomIndexed(roomId: string): Promise<boolean> {
throw new Error("Unimplemented");
}
/**
* Get statistical information of the index.
*