diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt index 769e5dd16..275f88cf5 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt @@ -311,14 +311,18 @@ internal class OnlinePush { // println(dataBytes.toUHexString()) if (dataBytes[0].toInt() != 59) { - return@flatMap sequenceOf( - GroupNameChangeEvent( - origin = group.name.also { group._name = message }, - new = message, - group = group, - isByBot = false + return@flatMap if (group.name != message) { + sequenceOf( + GroupNameChangeEvent( + origin = group.name.also { group._name = message }, + new = message, + group = group, + isByBot = false + ) ) - ) + } else { + sequenceOf() + } } else { //println(message + ":" + dataBytes.toUHexString()) when (message) {