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: show toast message on vault locked/unlocked events
Ammar Ahmedcbddea451825
diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsxindex c2dc0f03f..79abc6a63 100644--- a/apps/mobile/app/hooks/use-app-events.tsx+++ b/apps/mobile/app/hooks/use-app-events.tsx@@ -766,6 +766,26 @@ export const useAppEvents = () => {db.eventManager.subscribe(EVENTS.uploadCanceled, (data) => {useAttachmentStore.getState().setUploading(data);}),+ db.eventManager.subscribeMulti(+ [EVENTS.vaultAutoLocked, EVENTS.vaultLocked],+ () => {+ setTimeout(() => {+ ToastManager.show({+ message: strings.vaultLocked(),+ type: "info"+ });+ }, 300);+ },+ undefined+ ),+ db.eventManager.subscribe(EVENTS.vaultUnlocked, () => {+ setTimeout(() => {+ ToastManager.show({+ message: strings.vaultUnlocked(),+ type: "info"+ });+ }, 300);+ }),EV.subscribe(EVENTS.migrationStarted, (name) => {if (name !== "notesnook" ||