aboutsummaryrefslogtreecommitdiffstats
path: root/lib/msgstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r--lib/msgstore.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 434e0ad6..2a9ea86b 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -213,6 +213,11 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
}
}
case *types.MessagesDeleted:
+ if len(store.uids) < len(msg.Uids) {
+ update = true
+ break
+ }
+
toDelete := make(map[uint32]interface{})
for _, uid := range msg.Uids {
toDelete[uid] = nil