From 634169235a6b46577f7c9b20f16f4f205261b8ba Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shalong-tanwen@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:26:35 +0000 Subject: [PATCH] fix(mobile): reset trashed state for local assets on remote asset deletion (#4501) --- mobile/lib/shared/services/sync.service.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/lib/shared/services/sync.service.dart b/mobile/lib/shared/services/sync.service.dart index d12a68ffd..b3a00429a 100644 --- a/mobile/lib/shared/services/sync.service.dart +++ b/mobile/lib/shared/services/sync.service.dart @@ -178,6 +178,7 @@ class SyncService { if (onlyLocal.isNotEmpty) { for (final Asset a in onlyLocal) { a.remoteId = null; + a.isTrashed = false; } await _db.assets.putAll(onlyLocal); }