From 348b4ff89e174648a7a71b7b997a83e72e59bff9 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 7 Jan 2021 21:50:45 +0800 Subject: [PATCH] Fix build --- mirai-core-api/src/commonMain/kotlin/message/data/impl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core-api/src/commonMain/kotlin/message/data/impl.kt b/mirai-core-api/src/commonMain/kotlin/message/data/impl.kt index 536468292..a8d86fc0b 100644 --- a/mirai-core-api/src/commonMain/kotlin/message/data/impl.kt +++ b/mirai-core-api/src/commonMain/kotlin/message/data/impl.kt @@ -52,9 +52,9 @@ internal fun Message.contentEqualsStrictImpl(another: Message, ignoreCase: Boole * 逐个判断非 [PlainText] 的 [Message] 是否 [equals] */ this.forEachContent { thisElement -> - if (thisElement.isPlain()) return@forEachContent + if (thisElement is PlainText) return@forEachContent for (it in anotherIterator) { - if (it.isPlain() || it !is MessageContent) continue + if (it is PlainText || it !is MessageContent) continue if (thisElement != it) return false } }