Settings for an encrypted room.

This determines the algorithm and rotation periods of a group session.

Constructors

Properties

The encryption algorithm that should be used in the room.

errorOnVerifiedUserProblem: boolean

Should keys be shared with a verified user with an unverified device or when a verified user has replaced their identity. Otherwise keys are shared with unsigned devices as normal.

historyVisibility: HistoryVisibility

The history visibility of the room when the session was created.

onlyAllowTrustedDevices: boolean

Should untrusted devices receive the room key, or should they be excluded from the conversation.

rotationPeriod: bigint

How long the session should be used before changing it, expressed in microseconds.

rotationPeriodMessages: bigint

How many messages should be sent before changing the session.