From 8bf100f7b46bdafc83776e7c6177803a82b2eb17 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Mon, 21 Sep 2020 20:43:22 +0200 Subject: [PATCH] reply: don't override the answered flag if we didn't send Aerc just sent the true / false update regardless, meaning if someone already replied to a mail, then drafted yet another mail to the same parent the flag would vanish. This commit fixes this behaviour. --- commands/msg/reply.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 3c8016e..bde9194 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -181,7 +181,9 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { }) composer.OnClose(func(c *widgets.Composer) { - store.Answered([]uint32{msg.Uid}, c.Sent(), nil) + if c.Sent() { + store.Answered([]uint32{msg.Uid}, true, nil) + } }) return nil