mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-23 10:20:14 +08:00
Fix wrong equals operator
This commit is contained in:
parent
213dbd6b44
commit
cc171a87b4
@ -409,7 +409,7 @@ internal inline class SingleMessageChainImpl(
|
||||
override fun remove() = throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override operator fun contains(element: Message): Boolean = element === delegate
|
||||
override operator fun contains(element: Message): Boolean = element == delegate
|
||||
override val size: Int get() = 1
|
||||
// endregion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user