aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 4e8dd171..bf3f6177 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
}