Class

RoomTracker

RoomTracker()

Tracks room encryption status for a MatrixClient.
Constructor

# new RoomTracker()

View Source e2ee/RoomTracker.ts, line 7

Classes

RoomTracker

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.

View Source e2ee/RoomTracker.ts, line 144

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.

View Source e2ee/RoomTracker.ts, line 117

# async onRoomJoin(roomId)

Handles a room join
Parameters:
Name Type Description
roomId The room ID.

View Source e2ee/RoomTracker.ts, line 107

# 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.

View Source e2ee/RoomTracker.ts, line 125

# 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.

View Source e2ee/RoomTracker.ts, line 134