Przeglądaj źródła

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

shenlong 1 rok temu
rodzic
commit
634169235a
1 zmienionych plików z 1 dodań i 0 usunięć
  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) {
       if (onlyLocal.isNotEmpty) {
         for (final Asset a in onlyLocal) {
         for (final Asset a in onlyLocal) {
           a.remoteId = null;
           a.remoteId = null;
+          a.isTrashed = false;
         }
         }
         await _db.assets.putAll(onlyLocal);
         await _db.assets.putAll(onlyLocal);
       }
       }