From 48a88fe44f617585050e7640a687a82bc5623970 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 9 Oct 2019 09:46:01 +0200 Subject: [PATCH] lib/msgstore: fix invalid callback invocation creating a directory must not invoke the callback, as this is meant for the completion of the move --- lib/msgstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msgstore.go b/lib/msgstore.go index 071a504..56d9eda 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -294,7 +294,7 @@ func (store *MessageStore) Move(uids []uint32, dest string, createDest bool, store.worker.PostAction(&types.CreateDirectory{ Directory: dest, Quiet: true, - }, cb) + }, nil) // quiet doesn't return an error, don't want the done cb here } store.worker.PostAction(&types.CopyMessages{