diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/PbMessageSvc.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/PbMessageSvc.kt index 7d35fc9f5..9ec0af829 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/PbMessageSvc.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/PbMessageSvc.kt @@ -33,7 +33,7 @@ internal class PbMessageSvc { sealed class Response : Packet { object Success : Response() { override fun toString(): String { - return "PbMessageSvc.PbMsgWithDraw.Response.Success" + return "PbMsgWithDraw.Success" } } @@ -53,7 +53,14 @@ internal class PbMessageSvc { ): OutgoingPacketWithRespType { require(messageSequenceId.size == messageRandom.size) - return buildOutgoingUniPacket(client) { + return buildOutgoingUniPacket( + client, + name = "PbMsgWithDraw(" + + "group=$groupCode, " + + "seq=${messageSequenceId.joinToString(separator = ",")}, " + + "rand=${messageRandom.joinToString(separator = ",")}" + + ")" + ) { writeProtoBuf( MsgSvc.PbMsgWithDrawReq.serializer(), MsgSvc.PbMsgWithDrawReq( @@ -89,7 +96,15 @@ internal class PbMessageSvc { ): OutgoingPacketWithRespType { require(messageSequenceId.size == messageRandom.size) - return buildOutgoingUniPacket(client) { + return buildOutgoingUniPacket( + client, + name = "PbMsgWithDraw(" + + "groupTemp=$toUin, " + + "seq=${messageSequenceId.joinToString(separator = ",")}, " + + "rand=${messageRandom.joinToString(separator = ",")}, " + + "time=${time}" + + ")" + ) { writeProtoBuf( MsgSvc.PbMsgWithDrawReq.serializer(), MsgSvc.PbMsgWithDrawReq( @@ -128,7 +143,15 @@ internal class PbMessageSvc { ): OutgoingPacketWithRespType { require(messageSequenceId.size == messageRandom.size) - return buildOutgoingUniPacket(client) { + return buildOutgoingUniPacket( + client, + name = "PbMsgWithDraw(" + + "friend=$toUin, " + + "seq=${messageSequenceId.joinToString(separator = ",")}, " + + "rand=${messageRandom.joinToString(separator = ",")}, " + + "time=${time}" + + ")" + ) { writeProtoBuf( MsgSvc.PbMsgWithDrawReq.serializer(), MsgSvc.PbMsgWithDrawReq(