Skip to content

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

mobile: update pinned notes widget on archive/unarchive

kashaf-ansari-deva70ffdb9ba5d
diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx
index 77a8c780f..e26a38f5c 100644
--- a/apps/mobile/app/hooks/use-actions.tsx
+++ b/apps/mobile/app/hooks/use-actions.tsx
@@ -1190,6 +1190,7 @@ export const useActions = ({
setItem((await db.notes.note(item.id)) as Item);
Navigation.queueRoutesForUpdate();
useArchivedStore.getState().refresh();
+ PinnedNotesWidget.updateNotes();
},
checked: item.archived,
isToggle: true