fix(api): fix msgBoxActiv svc

This commit is contained in:
Il Harper 2024-03-17 02:58:45 +08:00
parent a55fb930ab
commit b4e9817b5d
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -10,7 +10,9 @@ export interface MsgBoxActiv {
export const msgBoxActiv = (ctx: ChronocatContext): MsgBoxActiv => { export const msgBoxActiv = (ctx: ChronocatContext): MsgBoxActiv => {
const activated: string[] = [] const activated: string[] = []
let activate: (peerUid: string) => void = () => {} let activateIntl: (peerUid: string) => void = () => {}
const activate = (peerUid: string) => activateIntl(peerUid)
void ctx.chronocat void ctx.chronocat
.whenReady() .whenReady()
@ -33,7 +35,7 @@ export const msgBoxActiv = (ctx: ChronocatContext): MsgBoxActiv => {
}, },
}) as unknown as Promise<void> }) as unknown as Promise<void>
activate = (peerUid: string) => activateIntl = (peerUid: string) =>
void (task = task.then(async () => { void (task = task.then(async () => {
await ctx.chronocat.sleep(500) await ctx.chronocat.sleep(500)