diff options
author | Reto Brunner <reto@labrat.space> | 2020-05-02 17:46:00 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-06 10:00:46 -0400 |
commit | b03a73726d56ae4cf291ed8defec84dbc672f0c8 (patch) | |
tree | dfc6ecd680c006bd7e631a8e533a0c26b3326a0d /lib/messageview.go | |
parent | 8f2e5055eeb7e8058b637ab6cff6ff5f44da487b (diff) | |
download | aerc-b03a73726d56ae4cf291ed8defec84dbc672f0c8.tar.gz |
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.
Diffstat (limited to 'lib/messageview.go')
-rw-r--r-- | lib/messageview.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/messageview.go b/lib/messageview.go index 3bf133aa..39708045 100644 --- a/lib/messageview.go +++ b/lib/messageview.go @@ -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 { |