Initial states: |
@code{
private static readonly string[] ImplementedStates = { "m.room.avatar", "m.room.history_visibility", "m.room.guest_access", };
}
@creationEvent.InitialState.Count(x => !ImplementedStates.Contains(x.Type)) custom states
@foreach (var initialState in creationEvent.InitialState.Where(x => !ImplementedStates.Contains(x.Type)))
{
@(initialState.Type): |
@JsonSerializer.Serialize(initialState.Content, new JsonSerializerOptions { WriteIndented = true })
|
}
@creationEvent.InitialState.Count initial states
@foreach (var initialState in creationEvent.InitialState.Where(x => !new[] { "m.room.avatar", "m.room.history_visibility" }.Contains(x.Type)))
{
@(initialState.Type): |
@JsonSerializer.Serialize(initialState.Content, new JsonSerializerOptions { WriteIndented = true })
|
}
|