From 98418764b640d37e17caf537498f5436cfd8cda3 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 18 Dec 2019 06:33:57 +0100 Subject: [PATCH] AccountView: implement ProvidesMessages --- widgets/account.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 }