Skip to content

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

minor refactor

ammarahm-edbab47c9b3571
diff --git a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js b/apps/mobile/src/components/SimpleList/NoteItemWrapper.js
index 03bf845f7..cbe81a83f 100644
--- a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js
+++ b/apps/mobile/src/components/SimpleList/NoteItemWrapper.js
@@ -43,12 +43,12 @@ export const NoteItemWrapper = ({
openVault(item, true, true, false, true, false);
return;
}
- if (DDS.isTab) {
- eSendEvent(eOnLoadNote, item);
- } else if (isTrash) {
+ if (isTrash) {
simpleDialogEvent(TEMPLATE_TRASH(item.type));
} else {
eSendEvent(eOnLoadNote, item);
+ }
+ if (DDS.isPhone || DDS.isSmallTab) {
openEditorAnimation();
}
};