@using ArcaneLibs.Extensions
@using LibMatrix.EventTypes.Spec.State
@inherits BaseTimelineItem
@if (currentEventContent is not null) {
@if (previousEventContent is null) {
set the room name to "@currentEventContent.Name"
}
else {
changed the room name from "@previousEventContent.Name" to "@currentEventContent.Name"
}
}
else {
Unknown event @Event.Type (@Event.StateKey)
@Event.ToJson()
}
@code {
private RoomNameEventContent? previousEventContent => PreviousState?.TypedContent as RoomNameEventContent;
private RoomNameEventContent? currentEventContent => Event.TypedContent as RoomNameEventContent;
}