diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-05 14:48:36 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:12 +0200 |
commit | a8879d79c67f2631388e244548f7499b367e93ce (patch) | |
tree | 3a68d31b85842a7ac8efcd33a875d11c15931d8d | |
parent | 399854c103279da092538820d0b9889769b007c6 (diff) | |
download | aerc-a8879d79c67f2631388e244548f7499b367e93ce.zip |
msgstore: remove duplicate calls to store.update
Move and Delete commands perform a store.update() when their worker is
completed and also when the method is called. This patch removes the
call performed in the store.Move and store.Delete methods.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | lib/msgstore.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 6ce1702..8808965 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -411,7 +411,6 @@ func (store *MessageStore) Delete(uids []uint32, } cb(msg) }) - store.update() } func (store *MessageStore) revertDeleted(uids []uint32) { @@ -464,8 +463,6 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool, store.Delete(uids, cb) } }) - - store.update() } func (store *MessageStore) Flag(uids []uint32, flag models.Flag, |