aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--widgets/account.go7
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
}