mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
fix(mobile): reset trashed state for local assets on remote asset deletion (#4501)
This commit is contained in:
parent
45ffa65173
commit
634169235a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue