diff options
author | Reto Brunner <reto@labrat.space> | 2019-12-18 06:33:57 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-21 09:27:48 -0500 |
commit | 98418764b640d37e17caf537498f5436cfd8cda3 (patch) | |
tree | 1020bda1acaf3cc0483e1977fc8c6fc2a38249ee /widgets | |
parent | 684978e77da62c02d99eb8310b8cc75fdbca9888 (diff) | |
download | aerc-98418764b640d37e17caf537498f5436cfd8cda3.tar.gz |
AccountView: implement ProvidesMessages
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/account.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index 4e8dd17..bf3f617 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -16,6 +16,8 @@ import ( "git.sr.ht/~sircmpwn/aerc/worker/types" ) +var _ ProvidesMessages = (*AccountView)(nil) + type AccountView struct { acct *config.AccountConfig aerc *Aerc @@ -193,6 +195,11 @@ func (acct *AccountView) SelectedMessage() (*models.MessageInfo, error) { return msg, nil } +func (acct *AccountView) MarkedMessages() ([]*models.MessageInfo, error) { + store := acct.Store() + return msgInfoFromUids(store, store.Marked()) +} + func (acct *AccountView) SelectedMessagePart() *PartInfo { return nil } |