Skip to content

Commit

Permalink
fix: chat watcher not starting with first broadcast update
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoAugustine committed May 23, 2023
1 parent 46a0cc6 commit a7716f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/yuki/Yuki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ export default class Yuki extends BaseYuki {
return false
}
this.running = true
await this.broadcastWatcher()
// fetch recent history, so that only
// subscriptions during runtime are announced
await this.youtube.subscriptions.fetchRecentSubscriptions(1)
await this.subscriptionWatcher()
this.eventbus.listen(EventType.BROADCAST_UPDATE, () => this.chatWatcher())
await this.broadcastWatcher()
return true
}

Expand Down

0 comments on commit a7716f3

Please sign in to comment.