fix(chat): avoid waiting for ready before processing events
This commit is contained in:
parent
bf77f67c5b
commit
cfd7452f8d
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ func NewModel(app *tview.Application, cfg *config.Config, token string) *Model {
|
|||
session := session.NewCustom(id, http.NewClient(token), handler.New())
|
||||
state := state.NewFromSession(session, defaultstore.New())
|
||||
m.state = ningen.FromState(state)
|
||||
m.state.DontWaitForReady = true
|
||||
|
||||
m.events = make(chan gateway.Event)
|
||||
m.state.AddHandler(m.events)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue