Commit 6c0694c7 authored by Him188's avatar Him188

Fix coroutineScope

parent ba352a98
...@@ -232,15 +232,10 @@ internal class GroupImpl( ...@@ -232,15 +232,10 @@ internal class GroupImpl(
) : ContactImpl(), Group { ) : ContactImpl(), Group {
override var name by Delegates.observable(initName) { _, oldValue, newValue -> override var name by Delegates.observable(initName) { _, oldValue, newValue ->
println("发包了-2")
this.checkBotPermissionOperator() this.checkBotPermissionOperator()
println("发包了-1")
if (oldValue != newValue) { if (oldValue != newValue) {
println("发包了0")
launch { launch {
println("发包了1")
bot.network.run { bot.network.run {
println("发包了2")
TroopManagement.GroupOperation.name( TroopManagement.GroupOperation.name(
client = bot.client, client = bot.client,
groupCode = id, groupCode = id,
......
...@@ -181,7 +181,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -181,7 +181,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
val group = val group =
GroupImpl( GroupImpl(
bot = bot, bot = bot,
coroutineContext = this.coroutineContext, coroutineContext = bot.coroutineContext,
id = troopNum.groupCode, id = troopNum.groupCode,
uin = troopNum.groupUin, uin = troopNum.groupUin,
initName = troopNum.groupName, 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