about summary refs log tree commit diff
path: root/LibMatrix/RoomTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-08 00:01:34 +0100
committerRory& <root@rory.gay>2026-01-08 00:01:34 +0100
commit94df24a10a30333ae2753eb511ae99927ae494a3 (patch)
treec35dfbe11ce2d96d2abb973bc5873bbd7d6e18f2 /LibMatrix/RoomTypes
parentFix invite bug, fix room creation and upgrades (diff)
downloadLibMatrix-94df24a10a30333ae2753eb511ae99927ae494a3.tar.xz
Update policy server support
Diffstat (limited to 'LibMatrix/RoomTypes')
-rw-r--r--LibMatrix/RoomTypes/GenericRoom.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs

index 6a0b003..550eb58 100644 --- a/LibMatrix/RoomTypes/GenericRoom.cs +++ b/LibMatrix/RoomTypes/GenericRoom.cs
@@ -321,6 +321,9 @@ public class GenericRoom { public Task<RoomCreateEventContent?> GetCreateEventAsync() => GetStateAsync<RoomCreateEventContent>("m.room.create"); + public Task<RoomPolicyServerEventContent?> GetPolicyServerAsync() => + GetStateAsync<RoomPolicyServerEventContent>(RoomPolicyServerEventContent.EventId); + public async Task<string?> GetRoomType() { var res = await GetStateAsync<RoomCreateEventContent>("m.room.create"); return res.Type;