diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 90b01fd16..fa58e87ad 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -26,7 +26,7 @@ object Versions { const val dokka = "0.10.1" } - val blockingBridge = "1.0.2" + val blockingBridge = "1.0.5" object Android { const val androidGradlePlugin = "3.5.3" diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Image.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Image.kt index 74522c4b6..2e42466ce 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Image.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Image.kt @@ -22,6 +22,7 @@ package net.mamoe.mirai.message.data +import net.mamoe.kjbb.JvmBlockingBridge import net.mamoe.mirai.Bot import net.mamoe.mirai.contact.Contact import net.mamoe.mirai.message.code.CodableMessage @@ -192,6 +193,7 @@ public fun Image(imageId: String): OfflineImage = when { * @return 原图 HTTP 下载链接 (非 HTTPS) * @throws IllegalStateException 当无任何 [Bot] 在线时抛出 (因为无法获取相关协议) */ +@JvmBlockingBridge @JvmSynthetic public suspend fun Image.queryUrl(): String { @Suppress("DEPRECATION")