aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/send.go
diff options
context:
space:
mode:
authorSrivathsan Murali <sri@vathsan.com>2020-05-25 16:59:48 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-25 11:29:53 -0400
commitb1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c (patch)
tree310ff7fa90dfb23c303b7f89674b8411bd8cdf89 /commands/compose/send.go
parenta31d184ba53a9a61b8a0eed42cee52f9b1f2dc51 (diff)
downloadaerc-b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c.tar.gz
Set AnsweredFlag on successful reply
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r--commands/compose/send.go2
1 files changed, 2 insertions, 0 deletions
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()
}
}()