Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): reset trashed state for local assets on remote asset deletion (#4501)

shenlong634169235a6b
diff --git a/mobile/lib/shared/services/sync.service.dart b/mobile/lib/shared/services/sync.service.dart
index d12a68ffde..b3a00429a3 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);
}