File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ export default class Account {
313313
314314 if ( mappings ) {
315315 // Remove superfluous items from mappings
316- // as we don't remove items immediately anymore, due to possible interrupts
316+ // as we don't remove items immediately for anymore (for Atomic adapters) , due to possible interrupts
317317 await mappings . gc ( cache )
318318 // store mappings
319319 await mappings . persist ( )
Original file line number Diff line number Diff line change @@ -1381,7 +1381,15 @@ export default class SyncProcess {
13811381 } else {
13821382 localId = item . id
13831383 }
1384- // We don't remove from mappings immediately anymore, but wait for GC
1384+ if ( ! this . server . isAtomic ( ) ) {
1385+ if ( item . type === 'folder' ) {
1386+ await this . mappings . removeFolder ( { localId, remoteId } )
1387+ } else {
1388+ await this . mappings . removeBookmark ( { localId, remoteId } )
1389+ }
1390+ } else {
1391+ // We don't remove from mappings immediately anymore, but wait for GC
1392+ }
13851393 }
13861394
13871395 async loadChildren (
You can’t perform that action at this time.
0 commit comments