@using ArcaneLibs.Extensions @using LibMatrix.EventTypes.Spec.State @using LibMatrix.Responses @inherits BaseTimelineItem @if (currentEventContent is not null) { @if (previousEventContent is null) { set the room topic to
            @currentEventContent.Topic
        
} else { changed the room topic from
            @previousEventContent.Topic
        

to
            @currentEventContent.Topic
        
} } else {
Unknown event @Event.Type (@Event.StateKey)
            @Event.ToJson()
        
} @code { private RoomTopicEventContent? previousEventContent => PreviousState?.TypedContent as RoomTopicEventContent; private RoomTopicEventContent? currentEventContent => Event.TypedContent as RoomTopicEventContent; }