diff --git a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift index 4d2362b..6f493e6 100644 --- a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift +++ b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift @@ -58,8 +58,16 @@ struct SettingsScreen: View { controlType: .none ) .onTapGesture { - clientsStore.flushAllData() - Database.shared.flushAllData() + router.showAlert( + .alert, + title: "Delete data", + subtitle: "Delete all data from the app?" + ) { + Button("Delete", role: .destructive) { + clientsStore.flushAllData() + Database.shared.flushAllData() + } + } } #endif }