mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 01:39:35 +08:00
finish fix tim pc
This commit is contained in:
parent
90a7306822
commit
a174f17493
@ -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() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user