Push notifications: Add a magic button to fix duplicate notifications

This commit is contained in:
Thomas Ricouard 2023-01-26 13:50:02 +01:00
parent e5636382e6
commit 7d435d7557
9 changed files with 39 additions and 0 deletions

View File

@ -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)

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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" = "エクスプローラー";

View File

@ -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";

View File

@ -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";

View File

@ -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" = "跨站";