Commit a174f174 authored by mzdluo123's avatar mzdluo123

finish fix tim pc

parent 90a73068
......@@ -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
}
}
......
......@@ -145,7 +145,6 @@ internal object MessageSvcPbSendMsg : OutgoingPacketFactory<MessageSvcPbSendMsg.
boolValid = true,
fileSize = fileSize.toInt(),
fileType = 4,
time = voiceLength,
pbReserve = byteArrayOf(0)
)
}
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment