aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/delete.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-31 09:41:22 -0500
committerRobin Jarry <robin@jarry.cc>2022-08-01 10:37:44 +0200
commit0c85b5a6cfdae0cbe1d82cc958231e70888bf09f (patch)
treea3a1ede973131f6a02ea94837af04f28ab27e9bb /commands/msg/delete.go
parent894668aec26502f0f17b4afff7aa7fc476710a2f (diff)
downloadaerc-0c85b5a6cfdae0cbe1d82cc958231e70888bf09f.tar.gz
msglist: remove invalidate from commands which remove messages
Archive, delete, and move all remove messages from the message store. The commands themselves invalidated the message list. The message list was also invalidated for every MessagesDeleted message received. Remove the call in the command logic to reduce redraws of the message list Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/msg/delete.go')
-rw-r--r--commands/msg/delete.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index d90132aa..7cf81138 100644
--- a/commands/msg/delete.go
+++ b/commands/msg/delete.go
@@ -78,7 +78,6 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
acct.Messages().Select(0)
}
}
- acct.Messages().Invalidate()
case *types.Error:
store.Remark()
aerc.PushError(msg.Error.Error())