1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 02:46:47 +01:00

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

This commit is contained in:
shenlong 2023-10-16 17:26:35 +00:00 committed by GitHub
parent 45ffa65173
commit 634169235a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}