Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

check if note is locked before closing

ammarahm-edd957e9552432
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index eede77a45..210d3282e 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -447,7 +447,10 @@ export const ActionSheetComponent = ({
db.vault
.add(note.id)
.then((r) => {
- close();
+ let n = db.notes.note(note.id).data;
+ if (n.locked) {
+ close();
+ }
sendNoteEditedEvent(note.id, false, true);
localRefresh(note.type);
})