From b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c Mon Sep 17 00:00:00 2001 From: Srivathsan Murali Date: Mon, 25 May 2020 16:59:48 +0200 Subject: Set AnsweredFlag on successful reply --- commands/msg/reply.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'commands/msg/reply.go') 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 } -- cgit 1.4.1-2-gfad0