fix(core/media_downloader): handle local references

This commit is contained in:
rhunk
2023-12-09 22:50:39 +01:00
parent af138225f1
commit 62396885e2

View File

@@ -231,7 +231,7 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
private fun handleLocalReferences(path: String) = runBlocking {
Uri.parse(path).let { uri ->
if (uri.scheme == "file") {
if (uri.scheme == "file" || uri.scheme == null) {
return@let suspendCoroutine<String> { continuation ->
context.httpServer.ensureServerStarted()?.let { server ->
val file = Paths.get(uri.path).toFile()