From 98f95eb73f8b0eefc8bf32e8e34e2b5b14127eed Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 11 Jun 2025 10:44:47 +0200 Subject: [PATCH] fix unused data deletion issue --- LeStorage/SyncedCollection.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/LeStorage/SyncedCollection.swift b/LeStorage/SyncedCollection.swift index 5babc7c..12b7d4e 100644 --- a/LeStorage/SyncedCollection.swift +++ b/LeStorage/SyncedCollection.swift @@ -337,10 +337,8 @@ public class SyncedCollection: SomeSyncedCollection, Collect } func deleteUnusedGranted(instance: T) { - guard instance.sharing != nil else { return } - - self.delete(instance: instance) + self.deleteNoSyncNoCascade(id: instance.stringId) instance.deleteUnusedSharedDependencies(store: self.store) }