about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/HSAdmin
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-26 13:15:18 +0000
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-26 13:17:10 +0000
commite6fe1eacc36245c9799afae6e4dfaecb62ea65d6 (patch)
tree362fe1734d8a18446243642fc0e7d914b9ceb20d /MatrixRoomUtils.Web/Pages/HSAdmin
parentNew things (diff)
downloadMatrixUtils-e6fe1eacc36245c9799afae6e4dfaecb62ea65d6.tar.xz
Changes, fixes
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/HSAdmin')
-rw-r--r--MatrixRoomUtils.Web/Pages/HSAdmin/HSAdmin.razor9
1 files changed, 9 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Web/Pages/HSAdmin/HSAdmin.razor b/MatrixRoomUtils.Web/Pages/HSAdmin/HSAdmin.razor

index f972236..59ce70f 100644 --- a/MatrixRoomUtils.Web/Pages/HSAdmin/HSAdmin.razor +++ b/MatrixRoomUtils.Web/Pages/HSAdmin/HSAdmin.razor
@@ -1,4 +1,5 @@ @page "/HSAdmin" +@using LibMatrix.Homeservers <h3>Homeserver Admininistration</h3> <hr/> @@ -7,5 +8,13 @@ <a href="/HSAdmin/RoomQuery">Query rooms</a> @code { + public AuthenticatedHomeserverGeneric? Homeserver { get; set; } + + protected override async Task OnInitializedAsync() { + Homeserver = await MRUStorage.GetCurrentSessionOrNavigate(); + if (Homeserver is null) return; + await base.OnInitializedAsync(); + } + } \ No newline at end of file