aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-05 14:48:36 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-10 21:15:12 +0200
commita8879d79c67f2631388e244548f7499b367e93ce (patch)
tree3a68d31b85842a7ac8efcd33a875d11c15931d8d /lib
parent399854c103279da092538820d0b9889769b007c6 (diff)
downloadaerc-a8879d79c67f2631388e244548f7499b367e93ce.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 6ce17025..88089654 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,