From 6ed36188c9887cf1e49f2dab78edbfced5375a6e Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 18 Apr 2025 00:12:15 +0200 Subject: Add room state synapse admin api, get homeserver as user on synapse admin --- LibMatrix/Homeservers/RemoteHomeServer.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LibMatrix/Homeservers/RemoteHomeServer.cs') diff --git a/LibMatrix/Homeservers/RemoteHomeServer.cs b/LibMatrix/Homeservers/RemoteHomeServer.cs index 45ecb18..f0b35f9 100644 --- a/LibMatrix/Homeservers/RemoteHomeServer.cs +++ b/LibMatrix/Homeservers/RemoteHomeServer.cs @@ -16,6 +16,7 @@ public class RemoteHomeserver { proxy = null; ServerNameOrUrl = serverName; WellKnownUris = wellKnownUris; + Proxy = proxy; ClientHttpClient = new MatrixHttpClient { BaseAddress = new Uri(proxy?.TrimEnd('/') ?? wellKnownUris.Client?.TrimEnd('/') ?? throw new InvalidOperationException($"No client URI for {serverName}!")), // Timeout = TimeSpan.FromSeconds(300) // TODO: Re-implement this @@ -29,6 +30,7 @@ public class RemoteHomeserver { private Dictionary _profileCache { get; set; } = new(); public string ServerNameOrUrl { get; } + public string? Proxy { get; } [JsonIgnore] public MatrixHttpClient ClientHttpClient { get; set; } -- cgit 1.5.1