aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/account/view.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/account/view.go b/commands/account/view.go
index af393605..b2874069 100644
--- a/commands/account/view.go
+++ b/commands/account/view.go
@@ -30,7 +30,8 @@ func (ViewMessage) Execute(aerc *widgets.Aerc, args []string) error {
}
store := acct.Messages().Store()
msg := acct.Messages().Selected()
- if msg == nil {
+ _, deleted := store.Deleted[msg.Uid]
+ if msg == nil || deleted {
return nil
}
viewer := widgets.NewMessageViewer(acct, aerc.Config(), store, msg)