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.
This commit is contained in:
parent
4f40eecef8
commit
8bf100f7b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue