Fix voice missing

This commit is contained in:
Karlatemp 2020-12-21 13:00:10 +08:00
parent 2aacfe4064
commit 62f605eb35
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -255,7 +255,7 @@ internal fun List<MsgOnlinePush.PbPushMsg>.toMessageChain(
groupIdOrZero: Long,
onlineSource: Boolean,
isTemp: Boolean = false
): MessageChain = map{it.msg}.toMessageChain(bot, botId, groupIdOrZero, onlineSource, isTemp)
): MessageChain = map { it.msg }.toMessageChain(bot, botId, groupIdOrZero, onlineSource, isTemp)
internal fun MsgComm.Msg.toMessageChain(
bot: Bot?,
@ -298,6 +298,7 @@ internal fun List<MsgComm.Msg>.toMessageChain(
+OfflineMessageSourceImplByMsg(this@toMessageChain, botId)
}
elements.joinToMessageChain(groupIdOrZero, botId, this)
addAll(ppts)
}.cleanupRubbishMessageElements()
}