about summary refs log tree commit diff
path: root/LibMatrix/RoomTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-19 11:38:07 +0100
committerRory& <root@rory.gay>2025-03-19 11:38:07 +0100
commitc076141883ae7e02fcef33b8aed2bcbc0a53c16d (patch)
tree9e7e060ddd351a943b16cef89b6168f53071685a /LibMatrix/RoomTypes
parentAdd debugger display for spec policies (diff)
downloadLibMatrix-c076141883ae7e02fcef33b8aed2bcbc0a53c16d.tar.xz
Save some resources on PolicyRoom, add config to InviteListener to always initial sync on startup
Diffstat (limited to 'LibMatrix/RoomTypes')
-rw-r--r--LibMatrix/RoomTypes/PolicyRoom.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/LibMatrix/RoomTypes/PolicyRoom.cs b/LibMatrix/RoomTypes/PolicyRoom.cs

index 16d23d9..e0b6edb 100644 --- a/LibMatrix/RoomTypes/PolicyRoom.cs +++ b/LibMatrix/RoomTypes/PolicyRoom.cs
@@ -23,7 +23,7 @@ public class PolicyRoom(AuthenticatedHomeserverGeneric homeserver, string roomId } public async IAsyncEnumerable<StateEventResponse> GetUserPoliciesAsync() { - var fullRoomState = GetFullStateAsync(); + var fullRoomState = GetPoliciesAsync(); await foreach (var eventResponse in fullRoomState) { if (UserPolicyEventTypes.Contains(eventResponse!.Type)) { yield return eventResponse; @@ -32,7 +32,7 @@ public class PolicyRoom(AuthenticatedHomeserverGeneric homeserver, string roomId } public async IAsyncEnumerable<StateEventResponse> GetServerPoliciesAsync() { - var fullRoomState = GetFullStateAsync(); + var fullRoomState = GetPoliciesAsync(); await foreach (var eventResponse in fullRoomState) { if (ServerPolicyEventTypes.Contains(eventResponse!.Type)) { yield return eventResponse; @@ -41,7 +41,7 @@ public class PolicyRoom(AuthenticatedHomeserverGeneric homeserver, string roomId } public async IAsyncEnumerable<StateEventResponse> GetRoomPoliciesAsync() { - var fullRoomState = GetFullStateAsync(); + var fullRoomState = GetPoliciesAsync(); await foreach (var eventResponse in fullRoomState) { if (RoomPolicyEventTypes.Contains(eventResponse!.Type)) { yield return eventResponse;