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.
This commit is contained in:
Reto Brunner 2020-05-02 17:46:00 +02:00 committed by Drew DeVault
parent 8f2e5055ee
commit b03a73726d
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ func NewMessageStoreView(messageInfo *models.MessageInfo,
} else {
cb(msv)
}
store.Read([]uint32{messageInfo.Uid}, true, nil)
}
func (msv *MessageStoreView) MessageInfo() *models.MessageInfo {