mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-02 04:30:25 +08:00
Splicing fragmented plain text
This commit is contained in:
parent
70ffca5138
commit
d48ccee708
@ -427,7 +427,13 @@ private fun MessageChain.cleanupRubbishMessageElements(): MessageChain {
|
||||
}
|
||||
}
|
||||
}
|
||||
add(element)
|
||||
|
||||
if (element is PlainText) { // 处理分片消息
|
||||
append(element.content)
|
||||
} else {
|
||||
add(element)
|
||||
}
|
||||
|
||||
previousLast = last
|
||||
last = element
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user