about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-12-18 06:33:57 +0100
committerDrew DeVault <sir@cmpwn.com>2019-12-21 09:27:48 -0500
commit98418764b640d37e17caf537498f5436cfd8cda3 (patch)
tree1020bda1acaf3cc0483e1977fc8c6fc2a38249ee /widgets
parent684978e77da62c02d99eb8310b8cc75fdbca9888 (diff)
downloadaerc-98418764b640d37e17caf537498f5436cfd8cda3.tar.gz
AccountView: implement ProvidesMessages
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 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
 }