Class

RoomTracker

RoomTracker()

Tracks room encryption status for a MatrixClient.
Constructor

# new RoomTracker()

View Source e2ee/RoomTracker.ts, line 8

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 134

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 115

# async onRoomJoin(roomId)

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

View Source e2ee/RoomTracker.ts, line 105

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