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
web: fix encryption progress when attaching files
Abdullah Attacdcdc43cad7c
diff --git a/apps/web/src/components/editor/picker.ts b/apps/web/src/components/editor/picker.tsindex 5da44f7aa..6d61b8807 100644--- a/apps/web/src/components/editor/picker.ts+++ b/apps/web/src/components/editor/picker.ts@@ -240,14 +240,13 @@ function withProgress<T>(({ type, total, loaded }: AttachmentProgress) => {if (type !== "encrypt") return;report({- current: loaded,- total: total,+ current: Math.round((loaded / total) * 100),+ total: 100,text: file.name});});- event.unsubscribe();- return action();+ return action().finally(() => event.unsubscribe());}});}