diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-08-16 16:23:41 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-22 15:46:55 +0200 |
commit | c98f70487417825ca592c928cbf0144ba88eef7e (patch) | |
tree | 8eee893e3155fc7a24224b47a99268fa6a83ebf9 /lib | |
parent | af72ca36072615f3afc79d7a3f28f82e381b618c (diff) | |
download | aerc-c98f70487417825ca592c928cbf0144ba88eef7e.tar.gz |
move: enable MoveMessages from msgstore
Enable the use of MoveMessages worker messages from the UI to the
backend. Completes implemention of MoveMessages for all supported
backends.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 2832346c..2ce531c8 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -476,7 +476,7 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool, }, nil) // quiet doesn't return an error, don't want the done cb here } - store.worker.PostAction(&types.CopyMessages{ + store.worker.PostAction(&types.MoveMessages{ Destination: dest, Uids: uids, }, func(msg types.WorkerMessage) { @@ -485,7 +485,7 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool, store.revertDeleted(uids) cb(msg) case *types.Done: - store.Delete(uids, cb) + cb(msg) } }) } |