Commit e2dd51e0 authored by Him188's avatar Him188

No add in `getFriend`

parent 10e6c519
...@@ -34,7 +34,7 @@ internal abstract class QQAndroidBotBase constructor( ...@@ -34,7 +34,7 @@ internal abstract class QQAndroidBotBase constructor(
val selfQQ: QQ by lazy { QQ(uin) } val selfQQ: QQ by lazy { QQ(uin) }
override fun getFriend(id: Long): QQ { override fun getFriend(id: Long): QQ {
return qqs.delegate.filteringGetOrAdd({ it.id == id }, { QQImpl(this as QQAndroidBot, coroutineContext, id) }) return qqs.delegate[id]
} }
override fun QQ(id: Long): QQ { override fun QQ(id: Long): QQ {
......
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