Use resolve for homeserver, fixing trailing slash issues
This commit is contained in:
parent
48adf82b7e
commit
ab61338382
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
extension MxcToHttps on Uri {
|
||||
Uri mxcToHttps(String homeserver) =>
|
||||
Uri.parse("${homeserver}_matrix/client/v1/media/download/$host$path");
|
||||
Uri mxcToHttps(String homeserver) => Uri.parse(
|
||||
homeserver,
|
||||
).resolve("_matrix/client/v1/media/download/$host$path");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue