From 2d5a37f22016b64776571b31622176fd37f9973d Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Mon, 4 Jan 2021 20:13:06 +0800 Subject: [PATCH] Remove debug information in StrangerList.kt (#809) * Remove debug information in StrangerList.kt * Format --- .../kotlin/network/protocol/packet/list/StrangerList.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/list/StrangerList.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/list/StrangerList.kt index 245b8df3e..9cf5c836d 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/list/StrangerList.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/list/StrangerList.kt @@ -13,7 +13,6 @@ import net.mamoe.mirai.internal.network.protocol.data.proto.OidbSso import net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacket import net.mamoe.mirai.internal.network.protocol.packet.OutgoingPacketFactory import net.mamoe.mirai.internal.network.protocol.packet.buildOutgoingUniPacket -import net.mamoe.mirai.internal.utils._miraiContentToString import net.mamoe.mirai.internal.utils.io.serialization.loadAs import net.mamoe.mirai.internal.utils.io.serialization.readProtoBuf import net.mamoe.mirai.internal.utils.io.serialization.toByteArray @@ -47,9 +46,7 @@ internal class StrangerList { override suspend fun ByteReadPacket.decode(bot: QQAndroidBot): Response { readProtoBuf(OidbSso.OIDBSSOPkg.serializer()).let { pkg -> if (pkg.result == 0) { - pkg.bodybuffer.loadAs(Oidb0x5d2.RspBody.serializer()).also { - pkg._miraiContentToString() - }.rspGetList!!.let { + pkg.bodybuffer.loadAs(Oidb0x5d2.RspBody.serializer()).rspGetList!!.let { bot.client.strangerSeq = it.seq return Response(pkg.result, it.list) } @@ -88,9 +85,7 @@ internal class StrangerList { override suspend fun ByteReadPacket.decode(bot: QQAndroidBot): Response { readProtoBuf(OidbSso.OIDBSSOPkg.serializer()).let { pkg -> if (pkg.result == 0) { - pkg.bodybuffer.loadAs(Oidb0x5d4.RspBody.serializer()).also { - pkg._miraiContentToString() - }.result.forEach { delResult -> + pkg.bodybuffer.loadAs(Oidb0x5d4.RspBody.serializer()).result.forEach { delResult -> bot.getStranger(delResult.uin)?.let { bot.strangers.remove(delResult.uin) StrangerRelationChangeEvent.Deleted(it).broadcast()