A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: only do push on auto sync
thecodrrc48343a882eb
diff --git a/apps/web/src/stores/user-store.js b/apps/web/src/stores/user-store.jsindex 255881234..7c93c7284 100644--- a/apps/web/src/stores/user-store.js+++ b/apps/web/src/stores/user-store.js@@ -31,7 +31,7 @@ class UserStore extends BaseStore {};});});- EV.subscribe("db:sync", this.sync);+ EV.subscribe("db:sync", () => this.sync(false));await this.sync();return true;});@@ -73,10 +73,10 @@ class UserStore extends BaseStore {});};- sync = () => {+ sync = (full = true) => {this.set((state) => (state.isSyncing = true));return db- .sync()+ .sync(full).then(() => {return appStore.refresh();})diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 0233ea9d0..5b7f3d404 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -8964,7 +8964,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":version "4.2.0"- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#658af649acdfc05231b20fc3c59b09d4771c67de"+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#00f2f6c4e1e08a49ab0f707dd06a2d9744b61bea"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"