Skip to content

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

send event to refresh notes on change sort order

ammarahm-ed62b239563594
diff --git a/apps/mobile/src/components/Sort/index.js b/apps/mobile/src/components/Sort/index.js
index e6d0a4430..738aee4e3 100644
--- a/apps/mobile/src/components/Sort/index.js
+++ b/apps/mobile/src/components/Sort/index.js
@@ -5,6 +5,7 @@ import {eSendEvent} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import {GROUP, SORT} from '../../utils';
import {db} from '../../utils/database';
+import { refreshNotesPage } from '../../utils/Events';
import {SIZE} from '../../utils/SizeUtils';
import {Button} from '../Button';
import Seperator from '../Seperator';
@@ -23,6 +24,7 @@ const Sort = ({type, screen}) => {
setTimeout(() => {
Navigation.setRoutesToUpdate([screen]);
eSendEvent('groupOptionsUpdate');
+ eSendEvent(refreshNotesPage);
}, 1);
};