aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-14 21:51:29 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-14 21:51:29 -0400
commit11f0a7267fd1a9d1c6dd55e1dc044b8ed639bbc0 (patch)
tree80e2456edadfdcd7c6a8e02ab4830c1139816174 /widgets/account.go
parent0f8b7a1203309ebec0dc78baf3f195671eadac2d (diff)
downloadaerc-11f0a7267fd1a9d1c6dd55e1dc044b8ed639bbc0.tar.gz
Implement message store side of message fetching
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 88575354..5747f4b8 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -58,7 +58,7 @@ func NewAccountView(conf *config.AccountConfig,
dirlist := NewDirectoryList(conf, logger, worker)
grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT)).Span(2, 1)
- msglist := NewMessageList(logger, worker)
+ msglist := NewMessageList(logger)
grid.AddChild(msglist).At(0, 1)
acct := &AccountView{
@@ -183,7 +183,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) {
if store, ok := acct.msgStores[msg.Name]; ok {
store.Update(msg)
} else {
- acct.msgStores[msg.Name] = NewMessageStore(msg)
+ acct.msgStores[msg.Name] = NewMessageStore(acct.worker, msg)
}
case *types.DirectoryContents:
store := acct.msgStores[acct.dirlist.selected]