EventIndex: Check if a newly encrypted room is indexed before adding a checkpoint.
This commit is contained in:
parent
ea35fc2881
commit
7a2bb4b112
2 changed files with 38 additions and 8 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue