about summary refs log tree commit diff
path: root/LibMatrix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-09-22 20:34:26 +0200
committerRory& <root@rory.gay>2024-09-22 20:34:26 +0200
commitba7c369846086133b59af1cee68b2d836589f37a (patch)
tree127f6112de35681476afc64e9e2e1e5653fb1191 /LibMatrix
parentMerge branch 'dev/authenticated-media' (diff)
downloadLibMatrix-ba7c369846086133b59af1cee68b2d836589f37a.tar.xz
Fixes
Diffstat (limited to 'LibMatrix')
-rw-r--r--LibMatrix/RoomTypes/GenericRoom.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs
index a1ef617..b9d98bd 100644
--- a/LibMatrix/RoomTypes/GenericRoom.cs
+++ b/LibMatrix/RoomTypes/GenericRoom.cs
@@ -393,7 +393,7 @@ public class GenericRoom {
             .Content.ReadFromJsonAsync<EventIdResponse>();
 
     public async Task<EventIdResponse?> SendStateEventAsync(string eventType, string stateKey, object content) =>
-        await (await Homeserver.ClientHttpClient.PutAsJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/state/{eventType}/{stateKey}", content))
+        await (await Homeserver.ClientHttpClient.PutAsJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/state/{eventType.UrlEncode()}/{stateKey.UrlEncode()}", content))
             .Content.ReadFromJsonAsync<EventIdResponse>();
 
     public async Task<EventIdResponse> SendTimelineEventAsync(string eventType, TimelineEventContent content) {