@using ArcaneLibs.Extensions @using LibMatrix.EventTypes.Spec @inherits BaseTimelineItem @if (!HasPreviousMessage) { :
} @switch (currentEventContent.MessageType) { case "m.text": { @foreach (var line in currentEventContent.Body.Split('\n')) { @line
} break; } case "m.image": { @currentEventContent.Body
break; } default: {
               @Event.RawContent?.ToJson(indent: false)
            
break; } }
@code { private RoomMessageEventContent? previousEventContent => PreviousState?.TypedContent as RoomMessageEventContent; private RoomMessageEventContent? currentEventContent => Event.TypedContent as RoomMessageEventContent; }