mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-23 00:12:13 +00:00
fix(api): fix msgBoxActiv svc
This commit is contained in:
parent
a55fb930ab
commit
b4e9817b5d
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user