From c076141883ae7e02fcef33b8aed2bcbc0a53c16d Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 19 Mar 2025 11:38:07 +0100 Subject: Save some resources on PolicyRoom, add config to InviteListener to always initial sync on startup --- LibMatrix/RoomTypes/PolicyRoom.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LibMatrix/RoomTypes') 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 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 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 GetRoomPoliciesAsync() { - var fullRoomState = GetFullStateAsync(); + var fullRoomState = GetPoliciesAsync(); await foreach (var eventResponse in fullRoomState) { if (RoomPolicyEventTypes.Contains(eventResponse!.Type)) { yield return eventResponse; -- cgit 1.5.1