b03a73726d56ae4cf291ed8defec84dbc672f0c8 — Reto Brunner 2 years ago 8f2e505
lib/messageview: mark messages as read

Currently at least the notmuch and maildir worker only set messages as read
if a body part is fetched. The gpg abstraction however fetches the full message.

We can simply set the readstate when we create the messageview, avoiding the issue.

Once this is merged, we can cleanup both workers.
1 files changed, 1 insertions(+), 0 deletions(-)

M lib/messageview.go
M lib/messageview.go => lib/messageview.go +1 -0
@@ 91,6 91,7 @@ func NewMessageStoreView(messageInfo *models.MessageInfo,
	} else {
	store.Read([]uint32{messageInfo.Uid}, true, nil)

func (msv *MessageStoreView) MessageInfo() *models.MessageInfo {