From a174f17493db267cc8318c896be9b875ef37d71a Mon Sep 17 00:00:00 2001 From: mzdluo123 Date: Tue, 7 Jul 2020 23:56:21 +0800 Subject: [PATCH] finish fix tim pc --- .../kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt | 2 +- .../protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt | 1 - .../commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt index e9cf93354..cce2600be 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt @@ -232,7 +232,7 @@ internal fun MsgComm.Msg.toMessageChain( val pptMsg = ptt?.run { when (fileType) { - 4 -> Voice(String(fileName), fileMd5, fileSize.toLong(), time, String(downPara)) + 4 -> Voice(String(fileName), fileMd5, fileSize.toLong(),String(downPara)) else -> null } } diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt index 2c2f2e591..6e3a8610c 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt @@ -145,7 +145,6 @@ internal object MessageSvcPbSendMsg : OutgoingPacketFactory