@page "/RoomManagerCreateRoom" @using System.Text.Json @using MatrixRoomUtils.Core.Extensions @using MatrixRoomUtils.Core.Responses @using MatrixRoomUtils.Web.Shared.SimpleComponents @using System.Reflection @using System.Runtime.Intrinsics.X86 @using System.Text.Json.Serialization @using MatrixRoomUtils.Web.Classes.RoomCreationTemplates
@JsonString*@
Preset: |
|
||||
Room name: |
|
||||
Room alias (localpart): |
|
||||
Room type: |
|
||||
History visibility: |
|
||||
Guest access: |
|
||||
Room icon: |
|
||||
Permissions: | |||||
{ creationEvent.PowerLevelContentOverride.Events[_event] = int.Parse(val.Value.ToString()); }" @onfocusout="() => { creationEvent.PowerLevelContentOverride.Events = creationEvent.PowerLevelContentOverride.Events.OrderByDescending(x => x.Value).ThenBy(x => x.Key).ToDictionary(x => x.Key, x => x.Value); }"/> | |||||
{ creationEvent.PowerLevelContentOverride.Users[_user] = int.Parse(val.Value.ToString()); }"/> | |||||
Server ACLs: |
@(creationEvent.ServerACLs.Allow.Count) allow rules@creationEvent.ServerACLs.Deny.Count deny rules |
||||
Invited members: |
@creationEvent.InitialState.Count(x => x.Type == "m.room.member") members@foreach (var member in creationEvent.InitialState.Where(x => x.Type == "m.room.member" && x.StateKey != RuntimeCache.CurrentHomeServer.UserId)) { |
||||
Initial states: |
@code{
private static readonly string[] ImplementedStates = { "m.room.avatar", "m.room.history_visibility", "m.room.guest_access", "m.room.server_acl" };
}
@creationEvent.InitialState.Count(x => !ImplementedStates.Contains(x.Type)) custom states
@creationEvent.InitialState.Count initial states
|
@creationEvent.ToJson(ignoreNull: true)
@creationEvent.ToJson()