about summary refs log tree commit diff
path: root/LibMatrix/Helpers/MediaResolver.cs
blob: 58866188e4168e9d081ef5d07a2598cfc4fdf273 (plain) (blame)
1
2
3
4
5
6
7
using LibMatrix.Services;

namespace LibMatrix.Helpers;

public static class MediaResolver {
    public static string ResolveMediaUri(string homeserver, string mxc) => mxc.Replace("mxc://", $"{homeserver}/_matrix/media/v3/download/");
}