Fix trooplist

This commit is contained in:
Him188 2020-02-02 00:47:35 +08:00
parent a707af649a
commit a30fab106c

View File

@ -67,7 +67,6 @@ internal class FriendList {
internal object GetTroopListSimplify :
PacketFactory<GetTroopListSimplify.Response>("friendlist.GetTroopListReqV2") {
override suspend fun ByteReadPacket.decode(bot: QQAndroidBot): GetTroopListSimplify.Response {
this.discardExact(4)
val res = this.decodeUniPacket(GetTroopListRespV2.serializer())
return Response(res.vecTroopList.orEmpty())
}