AccountView: implement ProvidesMessages
This commit is contained in:
parent
684978e77d
commit
98418764b6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue