mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
Fix build
This commit is contained in:
parent
ca6dbd2740
commit
348b4ff89e
@ -52,9 +52,9 @@ internal fun Message.contentEqualsStrictImpl(another: Message, ignoreCase: Boole
|
|||||||
* 逐个判断非 [PlainText] 的 [Message] 是否 [equals]
|
* 逐个判断非 [PlainText] 的 [Message] 是否 [equals]
|
||||||
*/
|
*/
|
||||||
this.forEachContent { thisElement ->
|
this.forEachContent { thisElement ->
|
||||||
if (thisElement.isPlain()) return@forEachContent
|
if (thisElement is PlainText) return@forEachContent
|
||||||
for (it in anotherIterator) {
|
for (it in anotherIterator) {
|
||||||
if (it.isPlain() || it !is MessageContent) continue
|
if (it is PlainText || it !is MessageContent) continue
|
||||||
if (thisElement != it) return false
|
if (thisElement != it) return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user