diff options
author | Srivathsan Murali <sri@vathsan.com> | 2020-05-25 16:59:48 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-25 11:29:53 -0400 |
commit | b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c (patch) | |
tree | 310ff7fa90dfb23c303b7f89674b8411bd8cdf89 /lib/msgstore.go | |
parent | a31d184ba53a9a61b8a0eed42cee52f9b1f2dc51 (diff) | |
download | aerc-b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c.tar.gz |
Set AnsweredFlag on successful reply
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r-- | lib/msgstore.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 7dc26898..86215a72 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -342,6 +342,15 @@ func (store *MessageStore) Read(uids []uint32, read bool, }, cb) } +func (store *MessageStore) Answered(uids []uint32, answered bool, + cb func(msg types.WorkerMessage)) { + + store.worker.PostAction(&types.AnsweredMessages{ + Answered: answered, + Uids: uids, + }, cb) +} + func (store *MessageStore) Uids() []uint32 { if store.filter { return store.results |