feat: 提及某个对话或用户

* 暂时不支持提醒某个在对话内的用户
This commit is contained in:
CrescentLeaf
2025-11-16 21:59:39 +08:00
parent 30c09d0613
commit ace3f8c4f9
4 changed files with 110 additions and 22 deletions

View File

@@ -27,6 +27,10 @@ function prettyFlatParsedMessage(html: string) {
let ret = ''
// 第一个元素时, 不会被聚合在一起
let lastElementType = ''
const textElementTags = [
'chat-text',
'chat-mention',
]
function checkContinuousElement(tagName: string) {
if (lastElementType != tagName) {
console.log(lastElementType, ls.map((v) => v.innerHTML))