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
mobile: simplify unencrypted content check
Abdullah Attab97ec3948b9f
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex 928f8931c..28e91467b 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -18,10 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { getFormattedDate } from "@notesnook/common";-import {- isEncryptedContent,- isUnencryptedContent-} from "@notesnook/core/dist/collections/content";+import { isEncryptedContent } from "@notesnook/core/dist/collections/content";import { NoteContent } from "@notesnook/core/dist/collections/session-content";import { EVENTS } from "@notesnook/core/dist/common";import {@@ -368,11 +365,7 @@ export const useEditor = (};} else if (note.contentId) {const rawContent = await db.content?.get(note.contentId);- if (- rawContent &&- !isDeleted(rawContent) &&- isUnencryptedContent(rawContent)- ) {+ if (rawContent && !isDeleted(rawContent) && !rawContent.locked) {currentContents.current[note.id] = {data: rawContent.data,type: rawContent.type