Skip to content

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

fix note not updated on removing from vault

ammarahm-ed718ac55c29c1
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index 977ae6cdd..413e0bf76 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -10,6 +10,7 @@ import {
eSendEvent,
eSubscribeEvent,
eUnSubscribeEvent,
+ sendNoteEditedEvent,
ToastEvent,
} from '../../services/EventManager';
import {getElevation, toTXT} from '../../utils';
@@ -313,6 +314,9 @@ export class VaultDialog extends Component {
.remove(this.state.note.id, this.password)
.then((r) => {
console.log(r, 'unocking result');
+ sendNoteEditedEvent(this.state.note.id);
+ updateEvent({type:Actions.NOTES});
+ eSendEvent(refreshNotesPage);
this.close();
})
.catch((e) => {