@page "/HSAdmin" @using LibMatrix.Homeservers @using ArcaneLibs.Extensions

Homeserver Admininistration


@if (Homeserver is null) {

Homeserver is null...

} else { @if (Homeserver is AuthenticatedHomeserverSynapse) {

Synapse tools


Query rooms } else {

Homeserver type @Homeserver.GetType().Name does not have any administration tools in RMU.

Server info:

@ServerVersionResponse?.ToJson(ignoreNull: true)
} } @code { public AuthenticatedHomeserverGeneric? Homeserver { get; set; } public ServerVersionResponse? ServerVersionResponse { get; set; } protected override async Task OnInitializedAsync() { Homeserver = await RMUStorage.GetCurrentSessionOrNavigate(); if (Homeserver is null) return; ServerVersionResponse = await (Homeserver.FederationClient?.GetServerVersionAsync() ?? Task.FromResult(null)); await base.OnInitializedAsync(); } }