Skip to content

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

update colors on delete

ammarahm-ed7592a31e26bb
diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.js
index ca9ed3263..15feba3f0 100644
--- a/apps/mobile/src/utils/functions.js
+++ b/apps/mobile/src/utils/functions.js
@@ -65,6 +65,7 @@ export const deleteItems = async (item) => {
updateEvent({type: Actions.NOTEBOOKS});
updateEvent({type: Actions.NOTES});
updateEvent({type: Actions.TRASH});
+ updateEvent({type: Actions.COLORS});
updateEvent({type: Actions.MENU_PINS});
ToastEvent.hide();
},
@@ -73,5 +74,6 @@ export const deleteItems = async (item) => {
}
updateEvent({type: Actions.TRASH});
updateEvent({type: Actions.CLEAR_SELECTION});
+ updateEvent({type: Actions.COLORS});
updateEvent({type: Actions.SELECTION_MODE, enabled: false});
};