diff --git a/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift b/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift index 5851477b..0ef27d2e 100644 --- a/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift +++ b/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift @@ -87,6 +87,20 @@ struct PushNotificationsView: View { } .listRowBackground(theme.primaryBackgroundColor) } + + Section { + Button("settings.push.duplicate.button.fix") { + Task { + await subscription.deleteSubscription() + await subscription.updateSubscription(forceCreate: true) + } + } + } header: { + Text("settings.push.duplicate.title") + } footer: { + Text("settings.push.duplicate.footer") + } + } .navigationTitle("settings.push.navigation-title") .scrollContentBackground(.hidden) diff --git a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings index 79aaeeaa..43f19852 100644 --- a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings @@ -119,6 +119,9 @@ "settings.content.default-visibility" = "Sichtbarkeit Beiträge"; "settings.content.reading" = "Lesen"; "settings.content.posting" = "Schreiben"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "Entdecken"; diff --git a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings index 20f6e2ec..71629277 100644 --- a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings @@ -122,6 +122,9 @@ "settings.section.other" = "Other"; "settings.other.hide-openai" = "Enable 🤖 helper"; "settings.other.social-keyboard" = "Enable Social Keyboard"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "Explore"; diff --git a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings index 0ff0eddd..157e89bf 100644 --- a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings @@ -119,6 +119,9 @@ "settings.content.default-visibility" = "Publicar visibilidad"; "settings.content.reading" = "Leyendo"; "settings.content.posting" = "Publicando"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; "enum.expand-media.show" = "Siempre"; "enum.expand-media.hide" = "Nunca"; "enum.expand-media.hide-sensitive" = "Ocultar contenido sensible"; diff --git a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings index 22f1282f..784357be 100644 --- a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings @@ -119,6 +119,9 @@ "settings.content.default-visibility" = "Visibilità del post"; "settings.content.reading" = "Lettura"; "settings.content.posting" = "Composizione"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "Esplora"; diff --git a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings index 5802c3a7..7886a277 100644 --- a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings @@ -105,6 +105,9 @@ "settings.timeline.add" = "ローカルタイムラインの追加"; "settings.title" = "設定"; "settings.rate" = "Ice Cubesを評価する"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "エクスプローラー"; diff --git a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings index 38d2401a..c74beb03 100644 --- a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings @@ -119,6 +119,9 @@ "settings.content.default-visibility" = "Standaard postzichtbaarheid"; "settings.content.reading" = "Lezen"; "settings.content.posting" = "Posten"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "Ontdekken"; diff --git a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings index 6e08a39a..25893a6d 100644 --- a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings @@ -109,6 +109,9 @@ "settings.section.other" = "Diğer"; "settings.other.hide-openai" = "Yardımcıyı 🤖 Aktive Et"; "settings.other.social-keyboard" = "Sosyal Klavyeyi Aktive Et"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; // MARK: Tabs "tab.explore" = "Keşfet"; diff --git a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings index 1f504d5a..2a70b58b 100644 --- a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings @@ -121,6 +121,10 @@ "settings.content.reading" = "阅读设置"; "settings.content.posting" = "发布设置"; +"settings.push.duplicate.title" = "Duplicate notifications fixer"; +"settings.push.duplicate.footer" = "Receiving duplicate notifications? Try this magic button in order to fix it"; +"settings.push.duplicate.button.fix" = "🪄 Fix it"; + // MARK: Tabs "tab.explore" = "探索"; "tab.federated" = "跨站";