diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-14 21:51:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-14 21:51:29 -0400 |
commit | 11f0a7267fd1a9d1c6dd55e1dc044b8ed639bbc0 (patch) | |
tree | 80e2456edadfdcd7c6a8e02ab4830c1139816174 /widgets/account.go | |
parent | 0f8b7a1203309ebec0dc78baf3f195671eadac2d (diff) | |
download | aerc-11f0a7267fd1a9d1c6dd55e1dc044b8ed639bbc0.tar.gz |
Implement message store side of message fetching
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/account.go b/widgets/account.go index 8857535..5747f4b 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] |