about summary refs log tree commit diff stats
path: root/lib/messageview.go
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 /lib/messageview.go
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.
Diffstat (limited to 'lib/messageview.go')
-rw-r--r--lib/messageview.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/messageview.go b/lib/messageview.go
index 3bf133a..3970804 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 {
4 +0200 several new changes, made gridmenu working' href='/acidbong/suckless/dwm/commit/util.c?h=6.1&id=39677ec76616fe4165ef92afb14db2bef2488e30'>39677ec ^
dc5d967 ^
39677ec ^
6a3ae5e ^
39677ec ^


39677ec ^
ca65478 ^
adaa28a ^
dc5d967 ^
adaa28a ^


849e631 ^
adaa28a ^


352cae4 ^
9955ddc ^
dc5d967 ^
9955ddc ^

352cae4 ^
439e15d ^
4230932 ^

439e15d ^



16c67f3 ^
352cae4 ^

439e15d ^

0464e42 ^
439e15d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54