diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/GroupImpl.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/GroupImpl.kt index 31bedfc44..def86ed0e 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/GroupImpl.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/GroupImpl.kt @@ -93,7 +93,7 @@ internal class GroupImpl( @OptIn(MiraiExperimentalAPI::class) override lateinit var botPermission: MemberPermission - var _botMuteTimestamp: Int = groupInfo.botMuteRemaining + var _botMuteTimestamp: Int = groupInfo.botMuteTimestamp override val botMuteRemaining: Int = if (_botMuteTimestamp == 0 || _botMuteTimestamp == 0xFFFFFFFF.toInt()) { diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/TroopManagement.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/TroopManagement.kt index a4d9ef3a0..58cee7ec0 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/TroopManagement.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/TroopManagement.kt @@ -44,7 +44,7 @@ internal class GroupInfoImpl( override val autoApprove get() = delegate.groupFlagext3?.and(0x00100000) == 0 override val confessTalk get() = delegate.groupFlagext3?.and(0x00002000) == 0 override val muteAll: Boolean get() = delegate.shutupTimestamp != 0 - override val botMuteRemaining: Int get() = delegate.shutupTimestampMe ?: 0 + override val botMuteTimestamp: Int get() = delegate.shutupTimestampMe ?: 0 } internal class TroopManagement { diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/GroupInfo.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/GroupInfo.kt index c494d2f27..d5c394c33 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/GroupInfo.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/GroupInfo.kt @@ -63,7 +63,7 @@ interface GroupInfo { /** * 机器人被禁言还剩时间, 秒. */ - val botMuteRemaining: Int + val botMuteTimestamp: Int /* /**