diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6266653..c07f0ad 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -26,7 +26,7 @@ jobs: with: go-version-file: gomuks/go.mod - - name: Do go build + - name: Go build run: | cd gomuks/pkg/ffi go build -tags goolm -o ../../../libgomuks.dll -buildmode=c-shared diff --git a/lib/helpers/extensions/mxc_to_https.dart b/lib/helpers/extensions/mxc_to_https.dart index 468da12..910f87d 100644 --- a/lib/helpers/extensions/mxc_to_https.dart +++ b/lib/helpers/extensions/mxc_to_https.dart @@ -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"); }