mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
parent
de170325c9
commit
70bbfcf786
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
package net.mamoe.mirai.internal.network.protocol.packet.chat.receive
|
package net.mamoe.mirai.internal.network.protocol.packet.chat.receive
|
||||||
|
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
import kotlinx.coroutines.sync.withLock
|
import kotlinx.coroutines.sync.withLock
|
||||||
import kotlinx.io.core.*
|
import kotlinx.io.core.*
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
@ -621,7 +620,7 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf(
|
|||||||
when (msg.msgGroupMsgSync.msgType) {
|
when (msg.msgGroupMsgSync.msgType) {
|
||||||
1, 2 -> {
|
1, 2 -> {
|
||||||
bot.groupListModifyLock.withLock {
|
bot.groupListModifyLock.withLock {
|
||||||
bot.createGroupForBot(msg.msgGroupMsgSync.grpCode)?.let {
|
bot.createGroupForBot(Mirai.calculateGroupUinByGroupCode(msg.msgGroupMsgSync.grpCode))?.let {
|
||||||
packetList.add(BotJoinGroupEvent.Active(it))
|
packetList.add(BotJoinGroupEvent.Active(it))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user