Skip to content

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

fix favorite from multi-select

ammarahm-ed6dc985bf136c
diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js
index 10dd826fc..f0a754988 100644
--- a/apps/mobile/src/components/SelectionHeader/index.js
+++ b/apps/mobile/src/components/SelectionHeader/index.js
@@ -125,10 +125,14 @@ export const SelectionHeader = ({navigation}) => {
if (selectedItemsList.length > 0) {
selectedItemsList.forEach(async item => {
await db.notes.note(item.id).favorite();
+ dispatch({type: ACTIONS.NOTES});
+ dispatch({type: ACTIONS.FAVORITES});
});
+
dispatch({type: ACTIONS.SELECTION_MODE, enabled: false});
- dispatch({type: ACTIONS.NOTES});
+
dispatch({type: ACTIONS.CLEAR_SELECTION});
+
ToastEvent.show('Notes added to favorites', 'success');
}
}}>