mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-22 07:07:53 +00:00
fix(event): unset id
when id's string "0"
This commit is contained in:
parent
e97c5a0089
commit
db639d2314
@ -384,6 +384,7 @@ async function parseElements(
|
||||
ctx.chronocat.uix.add(m.textElement!.atNtUid, m.textElement!.atUid)
|
||||
|
||||
let id: string | undefined = m.textElement!.atUid
|
||||
if (id === '0') id = undefined
|
||||
id ||= ctx.chronocat.uix.getUin(m.textElement!.atNtUid)
|
||||
|
||||
const name = m.textElement!.content.slice(1)
|
||||
|
Loading…
Reference in New Issue
Block a user