MXCryptoConfig

data class MXCryptoConfig(    val enableEncryptionForInvitedMembers: Boolean = true,     val discardRoomKeyRequestsFromUntrustedDevices: Boolean = true,     val limitRoomKeyRequestsToMyDevices: Boolean = true)

Class to define the parameters used to customize or configure the end-to-end crypto.

Constructors

Link copied to clipboard
fun MXCryptoConfig(    enableEncryptionForInvitedMembers: Boolean = true,     discardRoomKeyRequestsFromUntrustedDevices: Boolean = true,     limitRoomKeyRequestsToMyDevices: Boolean = true)

Properties

val discardRoomKeyRequestsFromUntrustedDevices: Boolean = true

If set to true, the SDK will automatically ignore room key request (gossiping) coming from your other untrusted sessions (or blocked). If set to false, the request will be forwarded to the application layer; in this case the application can decide to prompt the user.

Link copied to clipboard
val enableEncryptionForInvitedMembers: Boolean = true
Link copied to clipboard
val limitRoomKeyRequestsToMyDevices: Boolean = true

Currently megolm keys are requested to the sender device and to all of our devices. You can limit request only to your sessions by turning this setting to true. Forwarded keys coming from other users will also be ignored if set to true.