diff --git a/src/main.ts b/src/main.ts index a711cb4..0d17d20 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,7 +85,6 @@ export default class RemotelySavePlugin extends Plugin { currSyncMsg?: string; syncRibbon?: HTMLElement; autoRunIntervalID?: number; - ignoreAutoRemovedRecords?: Record; async syncRun(triggerSource: SyncTriggerSourceType = "manual") { const getNotice = (x: string) => { @@ -266,8 +265,6 @@ export default class RemotelySavePlugin extends Plugin { revokeAuthSetting: undefined, }; // init - this.ignoreAutoRemovedRecords = {}; - this.currSyncMsg = ""; await this.loadSettings(); @@ -643,9 +640,7 @@ export default class RemotelySavePlugin extends Plugin { } async trash(x: string) { - this.ignoreAutoRemovedRecords[x] = Date.now(); if (!(await this.app.vault.adapter.trashSystem(x))) { - this.ignoreAutoRemovedRecords[x] = Date.now(); await this.app.vault.adapter.trashLocal(x); } }