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 /commands/msg | |
parent | a31d184ba53a9a61b8a0eed42cee52f9b1f2dc51 (diff) | |
download | aerc-b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c.tar.gz |
Set AnsweredFlag on successful reply
Diffstat (limited to 'commands/msg')
-rw-r--r-- | commands/msg/reply.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 8e0feef..28ce245 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -157,6 +157,10 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { tab.Content.Invalidate() }) + composer.OnClose(func(c *widgets.Composer) { + store.Answered([]uint32{msg.Uid}, c.Sent(), nil) + }) + return nil } |