diff --git a/mirai-core/src/commonMain/kotlin/message/conversions.kt b/mirai-core/src/commonMain/kotlin/message/conversions.kt index b4ff19990..42c5c90ab 100644 --- a/mirai-core/src/commonMain/kotlin/message/conversions.kt +++ b/mirai-core/src/commonMain/kotlin/message/conversions.kt @@ -255,7 +255,7 @@ internal fun List.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.toMessageChain( +OfflineMessageSourceImplByMsg(this@toMessageChain, botId) } elements.joinToMessageChain(groupIdOrZero, botId, this) + addAll(ppts) }.cleanupRubbishMessageElements() }