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/compose/send.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands/compose') diff --git a/commands/compose/send.go b/commands/compose/send.go index 36b9fd81..59ae5d0b 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -244,6 +244,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { case *types.Done: aerc.PushStatus("Message sent.", 10*time.Second) r.Close() + composer.SetSent() composer.Close() case *types.Error: aerc.PushError(" " + msg.Error.Error()) @@ -256,6 +257,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { w.Close() } else { aerc.PushStatus("Message sent.", 10*time.Second) + composer.SetSent() composer.Close() } }() -- cgit