乱了, 懒得说是什么

This commit is contained in:
CrescentLeaf
2026-01-02 01:27:32 +08:00
parent bc603b8171
commit d4557ca0ae
10 changed files with 60 additions and 20 deletions

View File

@@ -37,18 +37,14 @@ export default class ChatMentionElement extends HTMLElement {
const text = $(this).attr('text')
this.link.style.fontStyle = ''
if (chatId) {
this.link.onclick = (e) => {
e.stopPropagation()
// deno-lint-ignore no-window
this.openChatInfo?.(chatId)
}
} else if (userId) {
this.link.onclick = (e) => {
e.stopPropagation()
// deno-lint-ignore no-window
this.openUserInfo?.(userId)
}
}