Commit 6c0694c7 authored by Him188's avatar Him188

Fix coroutineScope

parent ba352a98
......@@ -232,15 +232,10 @@ internal class GroupImpl(
) : ContactImpl(), Group {
override var name by Delegates.observable(initName) { _, oldValue, newValue ->
println("发包了-2")
this.checkBotPermissionOperator()
println("发包了-1")
if (oldValue != newValue) {
println("发包了0")
launch {
println("发包了1")
bot.network.run {
println("发包了2")
TroopManagement.GroupOperation.name(
client = bot.client,
groupCode = id,
......
......@@ -181,7 +181,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
val group =
GroupImpl(
bot = bot,
coroutineContext = this.coroutineContext,
coroutineContext = bot.coroutineContext,
id = troopNum.groupCode,
uin = troopNum.groupUin,
initName = troopNum.groupName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment