diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Group.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Group.kt index 4292f0978..2a3084c1b 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Group.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Group.kt @@ -5,6 +5,7 @@ package net.mamoe.mirai.contact import kotlinx.coroutines.CoroutineScope import net.mamoe.mirai.network.protocol.tim.packet.action.GroupInfo import net.mamoe.mirai.network.protocol.tim.packet.action.QuitGroupResponse +import net.mamoe.mirai.utils.MiraiExperimentalAPI import net.mamoe.mirai.utils.internal.PositiveNumbers import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail @@ -17,7 +18,7 @@ import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail * - Group ID([Group.internalId]) 是与调用 API 时使用的 id.(在 QQ 客户端中不可见) * @author Him188moe */ -interface Group : Contact, CoroutineScope, Iterable/*, Map*/ { // TODO: 2019/12/4 在 inline 稳定后实现 Map. 目前这样做会导致问题 +interface Group : Contact, CoroutineScope/*, Map*/ { // TODO: 2019/12/4 在 inline 稳定后实现 Map. 目前这样做会导致问题 /** * 内部 ID. 内部 ID 为 [GroupId] 的映射 */ diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/internal/ContactImpl.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/internal/ContactImpl.kt index 2701cf337..e9350c0c2 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/internal/ContactImpl.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/internal/ContactImpl.kt @@ -15,6 +15,7 @@ import net.mamoe.mirai.network.qqAccount import net.mamoe.mirai.network.sessionKey import net.mamoe.mirai.qqAccount import net.mamoe.mirai.sendPacket +import net.mamoe.mirai.utils.MiraiExperimentalAPI import net.mamoe.mirai.utils.MiraiInternalAPI import net.mamoe.mirai.utils.io.logStacktrace import net.mamoe.mirai.withSession @@ -85,8 +86,6 @@ internal data class GroupImpl internal constructor(override val bot: Bot, val gr } override fun toString(): String = "Group(${this.id})" - - override fun iterator(): Iterator = members.values.iterator() } @Suppress("FunctionName")