about summary refs log tree commit diff stats
path: root/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-01 19:34:08 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-01 19:34:08 -0500
commitcc03f6f4c802ee0742520145e9cacbd88f78ed9a (patch)
tree4baed447fec0eb5a5c82fd38a52ec205e638e8da /ui
parent1767e4fab515cefba08345e6eb2c84f46daf4be1 (diff)
downloadaerc-cc03f6f4c802ee0742520145e9cacbd88f78ed9a.tar.gz
Implement (most of) mailbox listing
Diffstat (limited to 'ui')
-rw-r--r--ui/account.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/account.go b/ui/account.go
index 85c4751..8b1d0c5 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