diff --git a/apps/mobile/app/hooks/use-actions.js b/apps/mobile/app/hooks/use-actions.js index 0b8efb67b..809fb51d3 100644 --- a/apps/mobile/app/hooks/use-actions.js +++ b/apps/mobile/app/hooks/use-actions.js @@ -170,7 +170,15 @@ export const useActions = ({ close = () => null, item }) => { checkNotifPinned(); return; } - if (item.locked) return; + if (item.locked) { + ToastEvent.show({ + heading: "Note is locked", + type: "error", + message: "Locked notes cannot be pinned to notifications", + context: "local" + }); + return; + } let text = await toTXT(item, false); let html = text.replace(/\n/g, "
"); Notifications.displayNotification({ @@ -520,7 +528,15 @@ export const useActions = ({ close = () => null, item }) => { } async function exportNote() { - if (item.locked) return; + if (item.locked) { + ToastEvent.show({ + heading: "Note is locked", + type: "error", + message: "Locked notes cannot be exported", + context: "local" + }); + return; + } ExportNotesSheet.present([item]); }