about summary refs log tree commit diff
path: root/MatrixUtils.Web/Pages/Rooms
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-10-03 20:53:24 +0200
committerRory& <root@rory.gay>2024-10-03 20:53:24 +0200
commit1041c0ade1700d1a56e4b2585c6a4e20d7123f81 (patch)
treee6af21cd725b34517501acd5088fb5805506cf16 /MatrixUtils.Web/Pages/Rooms
parentChanges (diff)
downloadMatrixUtils-1041c0ade1700d1a56e4b2585c6a4e20d7123f81.tar.xz
Small fixes, fix policy list editor
Diffstat (limited to 'MatrixUtils.Web/Pages/Rooms')
-rw-r--r--MatrixUtils.Web/Pages/Rooms/PolicyList.razor4
1 files changed, 2 insertions, 2 deletions
diff --git a/MatrixUtils.Web/Pages/Rooms/PolicyList.razor b/MatrixUtils.Web/Pages/Rooms/PolicyList.razor

index 4dc2adc..d57aa43 100644 --- a/MatrixUtils.Web/Pages/Rooms/PolicyList.razor +++ b/MatrixUtils.Web/Pages/Rooms/PolicyList.razor
@@ -214,13 +214,13 @@ else { private string GetPolicyTypeName(Type type) => GetPolicyTypeNameOrNull(type) ?? type.Name; private async Task RemovePolicyAsync(StateEventResponse policyEvent) { - await Room.SendStateEventAsync(policyEvent.Type, policyEvent.StateKey.UrlEncode(), new { }); + await Room.SendStateEventAsync(policyEvent.Type, policyEvent.StateKey, new { }); PolicyEventsByType[policyEvent.MappedType].Remove(policyEvent); await LoadStatesAsync(); } private async Task UpdatePolicyAsync(StateEventResponse policyEvent) { - await Room.SendStateEventAsync(policyEvent.Type, policyEvent.StateKey.UrlEncode(), policyEvent.RawContent); + await Room.SendStateEventAsync(policyEvent.Type, policyEvent.StateKey, policyEvent.RawContent); CurrentlyEditingEvent = null; await LoadStatesAsync(); }