diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:19:25 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 17:19:25 +0200 |
commit | 6356f2c1cedec67dd883986ff101e961118bc745 (patch) | |
tree | 66a9e5955d06f1b6b25081793bef157ca20c5985 | |
parent | Add updating of profiles and fetching room profiles (diff) | |
download | LibMatrix-bak-6356f2c1cedec67dd883986ff101e961118bc745.tar.xz |
Fix local media resolution
-rw-r--r-- | LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs b/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs index bc4ea1a..b98c38a 100644 --- a/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs +++ b/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs @@ -168,7 +168,7 @@ public class AuthenticatedHomeserverGeneric(string baseUrl, string accessToken) public string? ResolveMediaUri(string? mxcUri) { if (mxcUri is null) return null; - return $"{_httpClient.BaseAddress}/_matrix/media/v3/download/{mxcUri.Replace("mxc://", "")}".Replace("//", "/"); + return $"{_httpClient.BaseAddress}/_matrix/media/v3/download/{mxcUri.Replace("mxc://", "")}".Replace("//_matrix", "/_matrix"); } public async Task UpdateProfileAsync(ProfileResponseEventContent? newProfile, bool preserveCustomRoomProfile = true) { |