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:
parent
8f2e5055ee
commit
b03a73726d
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue