MegolmEncryptedMessageEventContent

@Serializable
data class MegolmEncryptedMessageEventContent(val ciphertext: MegolmMessageValue, val senderKey: KeyValue.Curve25519KeyValue? = null, val deviceId: String? = null, val sessionId: String, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : EncryptedMessageEventContent

Constructors

Link copied to clipboard
constructor(ciphertext: MegolmMessageValue, senderKey: KeyValue.Curve25519KeyValue? = null, deviceId: String? = null, sessionId: String, relatesTo: RelatesTo? = null, mentions: Mentions? = null, externalUrl: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "algorithm")
open override val algorithm: EncryptionAlgorithm.Megolm
Link copied to clipboard
@SerialName(value = "ciphertext")
val ciphertext: MegolmMessageValue
Link copied to clipboard
@SerialName(value = "device_id")
val deviceId: String?
Link copied to clipboard
@SerialName(value = "external_url")
open override val externalUrl: String?
Link copied to clipboard
@SerialName(value = "m.mentions")
open override val mentions: Mentions?
Link copied to clipboard
@SerialName(value = "m.relates_to")
open override val relatesTo: RelatesTo?
Link copied to clipboard
@SerialName(value = "sender_key")
val senderKey: KeyValue.Curve25519KeyValue?
Link copied to clipboard
@SerialName(value = "session_id")
val sessionId: String

Functions

Link copied to clipboard

This should return the same instance, but with the relatesTo property set to the given value. It is used for event content replacing.