diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-08-08 22:21:41 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-22 09:30:37 +0200 |
commit | cfc19a7ec22a1c60f79427ddbabdf437705efbab (patch) | |
tree | fbc4d54f9edb082ff87c84f864df17514c8e34da /widgets/msgviewer.go | |
parent | ee961d3b1d5ef412b3daf0ef0b8c18ac8957b365 (diff) | |
download | aerc-cfc19a7ec22a1c60f79427ddbabdf437705efbab.tar.gz |
store: extract marking behavior and add tests
Separate the marking functions from the message store and extract the
marking behavior into its own class with tests.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r-- | widgets/msgviewer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 70ff5d8f..cd0c9371 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -302,8 +302,7 @@ func (mv *MessageViewer) SelectedMessage() (*models.MessageInfo, error) { } func (mv *MessageViewer) MarkedMessages() ([]uint32, error) { - store := mv.Store() - return store.Marked(), nil + return mv.acct.MarkedMessages() } func (mv *MessageViewer) ToggleHeaders() { |