Skip to content

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

send note updated event

ammarahm-ed70e862dc7017
diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.js
index b173026a4..da3000f14 100644
--- a/apps/mobile/src/components/SelectionWrapper/index.js
+++ b/apps/mobile/src/components/SelectionWrapper/index.js
@@ -8,6 +8,7 @@ import {
eSubscribeEvent,
eUnSubscribeEvent,
openVault,
+ sendNoteEditedEvent,
ToastEvent,
} from '../../services/EventManager';
import {dWidth, getElevation, toTXT} from '../../utils';
@@ -104,6 +105,7 @@ const ActionStrip = ({note, setActionStrip}) => {
const updateNotes = () => {
dispatch({type: Actions.NOTES});
+ sendNoteEditedEvent({id: note.id, forced: true});
dispatch({type: Actions.FAVORITES});
eSendEvent(refreshNotesPage);
};
@@ -358,7 +360,7 @@ const SelectionWrapper = ({
return;
}
await onPress();
- }
+ };
const closeStrip = () => {
setActionStrip(false);