Cleanup
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/>
|