More robust way to resolve initial sync bug

This commit is contained in:
Zef Hemel
2023-07-28 21:22:06 +02:00
parent fb67cba6ac
commit 8a790aae9e
4 changed files with 23 additions and 19 deletions
+5 -7
View File
@@ -306,13 +306,11 @@ export class Client {
(meta) => fileFilterFn(meta.name),
// Run when a list of files has been retrieved
async () => {
if (await this.syncService?.hasInitialSyncCompleted()) {
await this.loadSettings();
if (typeof this.settings?.spaceIgnore === "string") {
fileFilterFn = gitIgnoreCompiler(this.settings.spaceIgnore).accepts;
} else {
fileFilterFn = () => true;
}
await this.loadSettings();
if (typeof this.settings?.spaceIgnore === "string") {
fileFilterFn = gitIgnoreCompiler(this.settings.spaceIgnore).accepts;
} else {
fileFilterFn = () => true;
}
},
);