Timeline Event
@Serializable
Constructors
Link copied to clipboard
fun TimelineEvent(event: Event.RoomEvent<*>, content: Result<RoomEventContent>? = if (event.isEncrypted) null else Result.success(event.content), roomId: RoomId = event.roomId, eventId: EventId = event.id, previousEventId: EventId?, nextEventId: EventId?, gap: TimelineEvent.Gap?)
Types
Properties
Link copied to clipboard
The content may be replaced by another event. You must ignore the MessageEventContent.relatesTo of content. Use MessageEventContent.relatesTo of the original content in TimelineEvent.event instead.