Skip to content

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

fix pinned item not removed on delete item.

ammarahm-ed1e48c1b53cb3
diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.js
index 0387b864c..eddbf121f 100644
--- a/apps/mobile/src/components/Dialog/index.js
+++ b/apps/mobile/src/components/Dialog/index.js
@@ -46,6 +46,7 @@ export class Dialog extends Component {
await db.notes.delete(i.id);
ToastEvent.show('Notes moved to trash', 'error', 3000);
updateEvent({type: i.type});
+ updateEvent({type: ACTIONS.PINNED});
} else if (i.type === 'topic') {
await db.notebooks.notebook(i.notebookId).topics.delete(i.title);
@@ -56,6 +57,7 @@ export class Dialog extends Component {
} else if (i.type === 'notebook') {
await db.notebooks.delete(i.id);
updateEvent({type: i.type});
+ updateEvent({type: ACTIONS.PINNED});
ToastEvent.show('Notebooks moved to trash', 'error', 3000);
}
});