about summary refs log tree commit diff stats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index b573201..ee7dd50 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -25,6 +25,8 @@ import (
 
 var ansi = regexp.MustCompile("^\x1B\\[[0-?]*[ -/]*[@-~]")
 
+var _ ProvidesMessages = (*MessageViewer)(nil)
+
 type MessageViewer struct {
 	ui.Invalidatable
 	acct     *AccountView
@@ -232,6 +234,11 @@ func (mv *MessageViewer) SelectedMessage() (*models.MessageInfo, error) {
 	return mv.msg, nil
 }
 
+func (mv *MessageViewer) MarkedMessages() ([]*models.MessageInfo, error) {
+	store := mv.Store()
+	return msgInfoFromUids(store, store.Marked())
+}
+
 func (mv *MessageViewer) ToggleHeaders() {
 	switcher := mv.switcher
 	mv.conf.Viewer.ShowHeaders = !mv.conf.Viewer.ShowHeaders