Types

Link copied to clipboard
@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
Link copied to clipboard
Link copied to clipboard
data class Unknown(val algorithm: EncryptionAlgorithm, val raw: JsonObject) : EncryptedMessageEventContent

Properties

Link copied to clipboard
Link copied to clipboard
abstract val externalUrl: String?
Link copied to clipboard
abstract val mentions: Mentions?
Link copied to clipboard
abstract val relatesTo: RelatesTo?

Functions

Link copied to clipboard
abstract fun copyWith(relatesTo: RelatesTo?): MessageEventContent

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