finish fix tim pc

This commit is contained in:
mzdluo123 2020-07-07 23:56:21 +08:00
parent 90a7306822
commit a174f17493
No known key found for this signature in database
GPG Key ID: 9F7BC2C154107A1D
3 changed files with 1 additions and 5 deletions

View File

@ -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
}
}

View File

@ -145,7 +145,6 @@ internal object MessageSvcPbSendMsg : OutgoingPacketFactory<MessageSvcPbSendMsg.
boolValid = true,
fileSize = fileSize.toInt(),
fileType = 4,
time = voiceLength,
pbReserve = byteArrayOf(0)
)
}

View File

@ -16,8 +16,6 @@ abstract class PttMessage : MessageContent {
abstract val fileName: String
abstract val md5: ByteArray
abstract val fileSize: Long
abstract val voiceLength:Int
}
@ -29,7 +27,6 @@ class Voice(
override val fileName: String,
override val md5: ByteArray,
override val fileSize: Long,
override val voiceLength: Int,
private val _url: String
) : PttMessage() {