From 33867d044431ec95066ee30768fa69da6a1c85fd Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 9 Feb 2020 12:52:00 +0800 Subject: [PATCH] Compatibility improvement --- .../src/commonMain/kotlin/net.mamoe.mirai/message/data/Image.kt | 1 + 1 file changed, 1 insertion(+) 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 9492822c9..738786749 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 @@ -81,6 +81,7 @@ private fun calculateImageMd5ByImageId(imageId: String): ByteArray { .substringAfter('{') .substringBefore('}') .replace("-", "") + .take(16 * 2) .chunkedHexToBytes() } }