Compare commits

...

2 commits

2 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,7 @@ jobs:
with: with:
go-version-file: gomuks/go.mod go-version-file: gomuks/go.mod
- name: Do go build - name: Go build
run: | run: |
cd gomuks/pkg/ffi cd gomuks/pkg/ffi
go build -tags goolm -o ../../../libgomuks.dll -buildmode=c-shared go build -tags goolm -o ../../../libgomuks.dll -buildmode=c-shared

View file

@ -1,4 +1,5 @@
extension MxcToHttps on Uri { extension MxcToHttps on Uri {
Uri mxcToHttps(String homeserver) => Uri mxcToHttps(String homeserver) => Uri.parse(
Uri.parse("${homeserver}_matrix/client/v1/media/download/$host$path"); homeserver,
).resolve("_matrix/client/v1/media/download/$host$path");
} }