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

<p>
    @Event.Sender created the room with room version @CreationEventContent.RoomVersion
    @CreationEventContent.Federate ? "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 RoomCreateEventData CreationEventContent => Event.TypedContent as RoomCreateEventData;

}