Skip to content

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

fix note not updating on lock

ammarahm-ed0ac04efff894
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 37c884d96..b4b96aa11 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -26,7 +26,8 @@ import { useTracked } from '../../provider';
import { ACTIONS } from '../../provider/actions';
import NavigationService from '../../services/NavigationService';
import { timeConverter, ToastEvent, DDS, db } from '../../utils/utils';
-import { openVault } from '../../services/eventManager';
+import { openVault, eSendEvent } from '../../services/eventManager';
+import { refreshNotesPage } from '../../services/events';
const w = Dimensions.get('window').width;
const h = Dimensions.get('window').height;
@@ -343,6 +344,9 @@ export const ActionSheetComponent = ({
db.vault
.add(note.id)
.then(() => {
+ dispatch({ type: ACTIONS.NOTES })
+ eSendEvent(refreshNotesPage);
+ dispatch({ type: ACTIONS.PINNED });
close();
})
.catch(async e => {