Fix unread command

This fixes ~sircmpwn/aerc2#195. While `read -t` works fine.
The `unread` command is not wired. This patch fixes it.

https://todo.sr.ht/~sircmpwn/aerc2/195
This commit is contained in:
Art Wild 2019-08-06 00:02:21 -04:00 committed by Drew DeVault
parent 0016775278
commit d4416e74ac

View file

@ -63,6 +63,8 @@ func (_ Read) Execute(aerc *widgets.Aerc, args []string) error {
}
} else if args[0] == "read" {
newReadState = true
} else if args[0] == "unread" {
newReadState = false
}
store.Read([]uint32{msg.Uid}, newReadState, func(
msg types.WorkerMessage) {