event-index: Pass the user/device id pair when initializing the event index.

This commit is contained in:
Damir Jelić 2020-10-13 16:02:05 +02:00
parent d007b06d7c
commit 5989a21dfb
2 changed files with 11 additions and 3 deletions

View file

@ -105,10 +105,13 @@ export default abstract class BaseEventIndexManager {
/**
* Initialize the event index for the given user.
*
* @param {string} user_id The event that should be added to the index.
* @param {string} device_id The profile of the event sender at the
*
* @return {Promise} A promise that will resolve when the event index is
* initialized.
*/
async initEventIndex(): Promise<void> {
async initEventIndex(user_id: string, device_id: string): Promise<void> {
throw new Error("Unimplemented");
}