AccountView: implement ProvidesMessages

This commit is contained in:
Reto Brunner 2019-12-18 06:33:57 +01:00 committed by Drew DeVault
parent 684978e77d
commit 98418764b6

View file

@ -16,6 +16,8 @@ import (
"git.sr.ht/~sircmpwn/aerc/worker/types" "git.sr.ht/~sircmpwn/aerc/worker/types"
) )
var _ ProvidesMessages = (*AccountView)(nil)
type AccountView struct { type AccountView struct {
acct *config.AccountConfig acct *config.AccountConfig
aerc *Aerc aerc *Aerc
@ -193,6 +195,11 @@ func (acct *AccountView) SelectedMessage() (*models.MessageInfo, error) {
return msg, nil return msg, nil
} }
func (acct *AccountView) MarkedMessages() ([]*models.MessageInfo, error) {
store := acct.Store()
return msgInfoFromUids(store, store.Marked())
}
func (acct *AccountView) SelectedMessagePart() *PartInfo { func (acct *AccountView) SelectedMessagePart() *PartInfo {
return nil return nil
} }