Replace

@Serializable
data class Replace(val eventId: EventId, val newContent: MessageEventContent? = null) : RelatesTo

Constructors

Link copied to clipboard
constructor(eventId: EventId, newContent: MessageEventContent? = null)

Properties

Link copied to clipboard
@SerialName(value = "event_id")
open override val eventId: EventId
Link copied to clipboard
@SerialName(value = "m.new_content")
val newContent: MessageEventContent?

The content used to replace the referenced event. This can be null, because it must not be present in encrypted events.

Link copied to clipboard
@SerialName(value = "rel_type")
open override val relationType: RelationType
Link copied to clipboard
@SerialName(value = "m.in_reply_to")
open override val replyTo: RelatesTo.ReplyTo? = null