Skip to content

Commit

Permalink
fix(manager): wait for bot visibility change, fix #649
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 4, 2022
1 parent 3c8b458 commit 3509827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/frontend/manager/src/bots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class BotProvider extends DataService<Dict<BotProvider.Data>> {

ctx.on('bot-added', (bot) => {
BotProvider.initialize(bot, ctx)
this.refresh()
process.nextTick(() => this.refresh())
})

ctx.on('bot-removed', (bot) => {
this.refresh()
process.nextTick(() => this.refresh())
bot._messageSent.stop()
bot._messageReceived.stop()
})
Expand Down

0 comments on commit 3509827

Please sign in to comment.