aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-02 17:46:00 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-06 10:00:46 -0400
commitb03a73726d56ae4cf291ed8defec84dbc672f0c8 (patch)
treedfc6ecd680c006bd7e631a8e533a0c26b3326a0d
parent8f2e5055eeb7e8058b637ab6cff6ff5f44da487b (diff)
downloadaerc-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.
-rw-r--r--lib/messageview.go1
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 {