From 2edbc3bf2e392d0f063065fef02bde3293788bea Mon Sep 17 00:00:00 2001 From: kashaf-ansari-dev Date: Thu, 2 Jul 2026 10:19:58 +0500 Subject: [PATCH] mobile: remove clear version history action for multiple selected notes Signed-off-by: kashaf-ansari-dev --- .../app/components/note-history/index.tsx | 2 +- .../app/components/selection-header/index.tsx | 26 ------------------- packages/intl/locale/en.po | 6 +---- packages/intl/locale/pseudo-LOCALE.po | 6 +---- packages/intl/src/strings.ts | 5 +--- 5 files changed, 4 insertions(+), 41 deletions(-) diff --git a/apps/mobile/app/components/note-history/index.tsx b/apps/mobile/app/components/note-history/index.tsx index 2003da413..8d840cf86 100644 --- a/apps/mobile/app/components/note-history/index.tsx +++ b/apps/mobile/app/components/note-history/index.tsx @@ -159,7 +159,7 @@ export default function NoteHistory({ onPress: () => { presentDialog({ title: strings.clearHistory(), - paragraph: strings.clearHistoryConfirmation(1), + paragraph: strings.clearHistoryConfirmation(), positiveText: strings.clear(), negativeText: strings.cancel(), positiveType: "errorShade", diff --git a/apps/mobile/app/components/selection-header/index.tsx b/apps/mobile/app/components/selection-header/index.tsx index 1417bda1e..7614fcb34 100644 --- a/apps/mobile/app/components/selection-header/index.tsx +++ b/apps/mobile/app/components/selection-header/index.tsx @@ -211,32 +211,6 @@ export const SelectionHeader = React.memo( visible: type === "note", icon: "export" }, - { - title: strings.clearHistory(), - onPress: async () => { - presentDialog({ - title: strings.clearHistory(), - paragraph: strings.clearHistoryConfirmation( - selectedItemsList.length - ), - positiveText: strings.clear(), - negativeText: strings.cancel(), - positiveType: "errorShade", - positivePress: async () => { - await db.noteHistory.clearSessions(...selectedItemsList); - Navigation.queueRoutesForUpdate(); - clearSelection(); - - ToastManager.show({ - heading: strings.historyCleared(), - type: "success" - }); - } - }); - }, - visible: type === "note", - icon: "history" - }, { title: strings.addToNotebook(), onPress: async () => { diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.po index 9b9e6eb96..0dfa5af6e 100644 --- a/packages/intl/locale/en.po +++ b/packages/intl/locale/en.po @@ -2299,11 +2299,7 @@ msgstr "Delete account" msgid "Delete all" msgstr "Delete all" -#: src/strings.ts:2805 -msgid "Delete all version history for {count} selected notes?" -msgstr "Delete all version history for {count} selected notes?" - -#: src/strings.ts:2804 +#: src/strings.ts:2802 msgid "Delete all version history for this note?" msgstr "Delete all version history for this note?" diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.po index 63f83ceed..25d657000 100644 --- a/packages/intl/locale/pseudo-LOCALE.po +++ b/packages/intl/locale/pseudo-LOCALE.po @@ -2288,11 +2288,7 @@ msgstr "" msgid "Delete all" msgstr "" -#: src/strings.ts:2805 -msgid "Delete all version history for {count} selected notes?" -msgstr "" - -#: src/strings.ts:2804 +#: src/strings.ts:2802 msgid "Delete all version history for this note?" msgstr "" diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.ts index 845a09121..af0e08680 100644 --- a/packages/intl/src/strings.ts +++ b/packages/intl/src/strings.ts @@ -2802,8 +2802,5 @@ Continue without attachments?`, t`Prevent the screen from turning off while the editor is focused.`, clearHistory: () => t`Clear history`, historyCleared: () => t`Version history cleared`, - clearHistoryConfirmation: (count: number) => - count === 1 - ? t`Delete all version history for this note?` - : t`Delete all version history for ${count} selected notes?` + clearHistoryConfirmation: () => t`Delete all version history for this note?` };