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>
This commit is contained in:
Tim Culverhouse 2022-07-05 14:48:36 -05:00 committed by Robin Jarry
parent 399854c103
commit a8879d79c6

View file

@ -411,7 +411,6 @@ func (store *MessageStore) Delete(uids []uint32,
} }
cb(msg) cb(msg)
}) })
store.update()
} }
func (store *MessageStore) revertDeleted(uids []uint32) { 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.Delete(uids, cb)
} }
}) })
store.update()
} }
func (store *MessageStore) Flag(uids []uint32, flag models.Flag, func (store *MessageStore) Flag(uids []uint32, flag models.Flag,