From 033d015f5ee24b1680c80357f64e00a1e5411df5 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Thu, 23 Feb 2023 11:24:12 +0100 Subject: [PATCH] fix: Multiple deletion bug in WriteControlledStore --- store/write_controlled_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/write_controlled_store.go b/store/write_controlled_store.go index e0044e92..6e76bad9 100644 --- a/store/write_controlled_store.go +++ b/store/write_controlled_store.go @@ -104,7 +104,7 @@ func (w *WriteControlledStore) Delete(messageID ...imap.InternalMessageID) error syncRef.lock.Lock() defer syncRef.lock.Unlock() - return w.impl.Delete(messageID...) + return w.impl.Delete(id) }(); err != nil { return err }