about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor
blob: 9c48455aca25712c7a3f9e9fa0bde32a1b47ddea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@using LibMatrix.StateEventTypes.Spec
@using LibMatrix.Extensions
@using ArcaneLibs.Extensions
@inherits BaseTimelineItem

<p>
    @Event.Sender created the room with room version @CreationEventContent.RoomVersion
    @(CreationEventContent.Federate ?? false ? "and" : "without") federating with other servers.<br/>
    This room is of type @(CreationEventContent.Type ?? "Untyped room (usually a chat room)")
</p>
<pre>
    @Event.RawContent?.ToJson(indent: false)
</pre>

@code {

    private RoomCreateEventContent CreationEventContent => Event.TypedContent as RoomCreateEventContent;

}