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
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
})
|
})
|
||||||
|
|
||||||
composer.OnClose(func(c *widgets.Composer) {
|
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
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue