Classes
Methods
# async getRoomCryptoConfig(roomId) → {Promise.<ICryptoRoomInformation>}
Gets the room's crypto configuration, as known by the underlying store. If the room is
not encrypted then this will return an empty object.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The room ID to get the config for. |
Resolves to the encryption config.
Promise.<ICryptoRoomInformation>
# async onRoomEvent(roomId, event)
Handles a room event.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
The room ID. | |
event |
The event. |
# async onRoomJoin(roomId)
Handles a room join
Parameters:
Name | Type | Description |
---|---|---|
roomId |
The room ID. |
# async prepare(roomIds)
Prepares the room tracker to track the given rooms.
Parameters:
Name | Type | Description |
---|---|---|
roomIds |
Array.<string>
|
The room IDs to track. This should be the joined rooms set. |
# async queueRoomCheck(roomId)
Queues a room check for the tracker. If the room needs an update to the store, an
update will be made.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The room ID to check. |