- Could not retrieve files if synchronisation has been interrupted or failed
This commit is contained in:
vorotamoroz
2022-09-03 16:43:59 +09:00
parent 0da1e3d9c8
commit ac3c78e198

View File

@@ -1928,7 +1928,7 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
async pullFile(filename: string, fileList?: TFile[], force?: boolean, rev?: string, waitForReady = true) {
const targetFile = this.app.vault.getAbstractFileByPath(id2path(filename));
if (!this.isTargetFile(targetFile)) return;
if (!this.isTargetFile(id2path(filename))) return;
if (targetFile == null) {
//have to create;
const doc = await this.localDatabase.getDBEntry(filename, rev ? { rev: rev } : null, false, waitForReady);