8bf100f7b46bdafc83776e7c6177803a82b2eb17 — Reto Brunner 8 months ago 4f40eec
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.
1 files changed, 3 insertions(+), 1 deletions(-)

M commands/msg/reply.go
M commands/msg/reply.go => commands/msg/reply.go +3 -1
@@ 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