about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/Rooms
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-14 07:21:04 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-14 07:21:04 +0100
commit226c6291551c8f07b2f67914d2b28577b1df7244 (patch)
treec6371db23b54cb30cf734c60274518fbd6954db3 /MatrixRoomUtils.Web/Pages/Rooms
parentTemp state (diff)
downloadMatrixUtils-226c6291551c8f07b2f67914d2b28577b1df7244.tar.xz
Cleanup
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/Rooms')
-rw-r--r--MatrixRoomUtils.Web/Pages/Rooms/Create.razor7
-rw-r--r--MatrixRoomUtils.Web/Pages/Rooms/Index.razor2
-rw-r--r--MatrixRoomUtils.Web/Pages/Rooms/PolicyList.razor1
3 files changed, 6 insertions, 4 deletions
diff --git a/MatrixRoomUtils.Web/Pages/Rooms/Create.razor b/MatrixRoomUtils.Web/Pages/Rooms/Create.razor
index 08b21dd..e477f4c 100644
--- a/MatrixRoomUtils.Web/Pages/Rooms/Create.razor
+++ b/MatrixRoomUtils.Web/Pages/Rooms/Create.razor
@@ -4,6 +4,7 @@
 @using ArcaneLibs.Extensions
 @using LibMatrix
 @using LibMatrix.EventTypes.Spec.State
+@using LibMatrix.EventTypes.Spec.State.RoomInfo
 @using LibMatrix.Homeservers
 @using LibMatrix.Responses
 @using MatrixRoomUtils.Web.Classes.RoomCreationTemplates
@@ -49,15 +50,15 @@
         <tr>
             <td>Room type:</td>
             <td>
-                @if (creationEvent._creationContentBaseType is null) {
+                @if (creationEvent.CreationContentBaseType is null) {
                     <p style="color: red;">creationEvent._creationContentBaseType is null!</p>
                 }
                 else {
-                    <InputSelect @bind-Value="@creationEvent._creationContentBaseType.Type">
+                    <InputSelect @bind-Value="@creationEvent.CreationContentBaseType.Type">
                         <option value="">Room</option>
                         <option value="m.space">Space</option>
                     </InputSelect>
-                    <FancyTextBox @bind-Value="@creationEvent._creationContentBaseType.Type"></FancyTextBox>
+                    <FancyTextBox @bind-Value="@creationEvent.CreationContentBaseType.Type"></FancyTextBox>
                 }
             </td>
         </tr>
diff --git a/MatrixRoomUtils.Web/Pages/Rooms/Index.razor b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
index e137b6c..fb44337 100644
--- a/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
+++ b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
@@ -161,7 +161,7 @@
                     }
                     RenderContents |= queue.Count == 0;
                     if (queue.Count > 10) RenderContents = false;
-                    await Task.Delay(RenderContents ? 25 : 25);
+                    await Task.Delay(RenderContents ? 25 : 12);
                 }
                 // else {
                     // Console.WriteLine("Failed to dequeue item");
diff --git a/MatrixRoomUtils.Web/Pages/Rooms/PolicyList.razor b/MatrixRoomUtils.Web/Pages/Rooms/PolicyList.razor
index adedbd3..846d1cb 100644
--- a/MatrixRoomUtils.Web/Pages/Rooms/PolicyList.razor
+++ b/MatrixRoomUtils.Web/Pages/Rooms/PolicyList.razor
@@ -3,6 +3,7 @@
 @using LibMatrix.Homeservers
 @using ArcaneLibs.Extensions
 @using LibMatrix.EventTypes.Spec.State
+@using LibMatrix.EventTypes.Spec.State.Policy
 <h3>Policy list editor - Editing @RoomId</h3>
 <hr/>