Browse Source

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

shenlong 1 year ago
parent
commit
634169235a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mobile/lib/shared/services/sync.service.dart

+ 1 - 0
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);
       }