AccountView: implement ProvidesMessages
This commit is contained in:
parent
684978e77d
commit
98418764b6
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue