fix(event): unset id when id's string "0"

This commit is contained in:
Il Harper 2024-04-02 00:48:06 +08:00
parent e97c5a0089
commit db639d2314
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -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)