Fix build

This commit is contained in:
Him188 2021-01-07 21:50:45 +08:00
parent ca6dbd2740
commit 348b4ff89e

View File

@ -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
}
}