Skip to content

Commit

Permalink
forgot on tui
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Jul 10, 2024
1 parent d719c1d commit 7e72d70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ func (c *TUI) Start(ctx context.Context, cancel context.CancelCauseFunc) error {

func (c *TUI) HandleMessage(msg *messages.Message) *messages.Message {
switch msg := msg.Data.(type) {
case messages.RequestLogin:
if msg.Wait {
utils.Auth.Login(context.Background(), nil)
} else {
go utils.Auth.Login(context.Background(), nil)
}
case *messages.ServerInput:
_ = msg
var cancelled bool
Expand Down

0 comments on commit 7e72d70

Please sign in to comment.