From ac7ed016b00941380099d9a0b2601f4bc353f39f Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 27 May 2023 02:23:30 +0200 Subject: Remove a bunch of caching, make room listings more reliable --- .../Pages/PolicyList/PolicyListEditorPage.razor | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'MatrixRoomUtils.Web/Pages/PolicyList') diff --git a/MatrixRoomUtils.Web/Pages/PolicyList/PolicyListEditorPage.razor b/MatrixRoomUtils.Web/Pages/PolicyList/PolicyListEditorPage.razor index 08cdc2c..4b9c2f6 100644 --- a/MatrixRoomUtils.Web/Pages/PolicyList/PolicyListEditorPage.razor +++ b/MatrixRoomUtils.Web/Pages/PolicyList/PolicyListEditorPage.razor @@ -33,13 +33,13 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.server" && x.content.Entity != null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.server" && x.Content.Entity != null)) { - Entity: @policyEvent.content.Entity
State: @policyEvent.StateKey - @policyEvent.content.Reason + Entity: @policyEvent.Content.Entity
State: @policyEvent.StateKey + @policyEvent.Content.Reason - @policyEvent.content.ExpiryDateTime + @policyEvent.Content.ExpiryDateTime @@ -59,11 +59,11 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.server" && x.content.Entity == null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.server" && x.Content.Entity == null)) { @policyEvent.StateKey - @policyEvent.content.ToJson(indent: false, ignoreNull: true) + @policyEvent.Content.ToJson(indent: false, ignoreNull: true) } @@ -88,13 +88,13 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.room" && x.content.Entity != null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.room" && x.Content.Entity != null)) { - Entity: @policyEvent.content.Entity
State: @policyEvent.StateKey - @policyEvent.content.Reason + Entity: @policyEvent.Content.Entity
State: @policyEvent.StateKey + @policyEvent.Content.Reason - @policyEvent.content.ExpiryDateTime + @policyEvent.Content.ExpiryDateTime @@ -113,11 +113,11 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.room" && x.content.Entity == null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.room" && x.Content.Entity == null)) { @policyEvent.StateKey - @policyEvent.content.ToJson(indent: false, ignoreNull: true) + @policyEvent.Content.ToJson(indent: false, ignoreNull: true) } @@ -146,17 +146,17 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.content.Entity != null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.Content.Entity != null)) { @if (_enableAvatars) { - + } - Entity: @string.Join("", policyEvent.content.Entity.Take(64))
State: @string.Join("", policyEvent.StateKey.Take(64)) - @policyEvent.content.Reason + Entity: @string.Join("", policyEvent.Content.Entity.Take(64))
State: @string.Join("", policyEvent.StateKey.Take(64)) + @policyEvent.Content.Reason - @policyEvent.content.ExpiryDateTime + @policyEvent.Content.ExpiryDateTime @@ -175,11 +175,11 @@ else - @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.content.Entity == null)) + @foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.Content.Entity == null)) { @policyEvent.StateKey - @policyEvent.content.ToJson(indent: false, ignoreNull: true) + @policyEvent.Content.ToJson(indent: false, ignoreNull: true) } @@ -261,9 +261,9 @@ else private async Task GetAllAvatars() { - foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.content.Entity != null)) + foreach (var policyEvent in PolicyEvents.Where(x => x.Type == "m.policy.rule.user" && x.Content.Entity != null)) { - await GetAvatar(policyEvent.content.Entity); + await GetAvatar(policyEvent.Content.Entity); } StateHasChanged(); } -- cgit 1.5.1