From cc03f6f4c802ee0742520145e9cacbd88f78ed9a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 1 Feb 2018 19:34:08 -0500 Subject: Implement (most of) mailbox listing --- ui/account.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/account.go b/ui/account.go index 85c47510..8b1d0c5d 100644 --- a/ui/account.go +++ b/ui/account.go @@ -35,6 +35,7 @@ func NewAccountTab(conf *config.AccountConfig, acc.Worker.PostAction(types.Connect{}, func(msg types.WorkerMessage) { if _, ok := msg.(types.Ack); ok { acc.logger.Println("Connected.") + acc.Worker.PostAction(types.ListDirectories{}, nil) } else { acc.logger.Println("Connection failed.") } @@ -73,6 +74,7 @@ func (acc *AccountTab) HandleMessage(msg types.WorkerMessage) { msg = acc.Worker.ProcessMessage(msg) switch msg.(type) { case types.Ack: + case types.Unsupported: // no-op case types.ApproveCertificate: // TODO: Ask the user -- cgit