diff options
author | Kevin Kuehler <keur@xcf.berkeley.edu> | 2019-10-28 12:07:00 -0700 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-10-29 11:07:21 -0400 |
commit | dca84afbbb050e21214b921ddd50eebc5c690435 (patch) | |
tree | 5cee9fd2328c7a67065e5c6f4b231f83ced257e4 /widgets/account.go | |
parent | 310bec27024579e7ada35585b3190ab875540804 (diff) |
Start adding thread support
* Add threading-enabled config option
* Add DirectoryThreaded and FetchDirectoryThreaded types to control path
* Add generic thread type for all backends to use
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index 4e8dd17..ebc321d 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -220,6 +220,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { } else { store = lib.NewMessageStore(acct.worker, msg.Info, acct.getSortCriteria(), + acct.conf.Ui.ThreadingEnabled, func(msg *models.MessageInfo) { acct.conf.Triggers.ExecNewEmail(acct.acct, acct.conf, msg) @@ -238,6 +239,10 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { if store, ok := acct.dirlist.SelectedMsgStore(); ok { store.Update(msg) } + case *types.DirectoryThreaded: + if store, ok := acct.dirlist.SelectedMsgStore(); ok { + store.Update(msg) + } case *types.FullMessage: if store, ok := acct.dirlist.SelectedMsgStore(); ok { store.Update(msg) |