diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 21da6be5e8..ba83838840 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -7096,3 +7096,5 @@ Sorry for the inconvenience."; "ChatList.ClearSearchHistory" = "Are you sure you want to clear your search history?"; "AuthSessions.TerminateSessionText" = "Are you sure you want to terminate this session?"; + +"Notifications.ResetAllNotificationsText" = "Are you sure you want to reset all notification settings to default?"; diff --git a/submodules/SettingsUI/Sources/Notifications/NotificationsAndSoundsController.swift b/submodules/SettingsUI/Sources/Notifications/NotificationsAndSoundsController.swift index ddcbd195f0..8b3ff7ec23 100644 --- a/submodules/SettingsUI/Sources/Notifications/NotificationsAndSoundsController.swift +++ b/submodules/SettingsUI/Sources/Notifications/NotificationsAndSoundsController.swift @@ -671,6 +671,7 @@ public func notificationsAndSoundsController(context: AccountContext, exceptions let presentationData = context.sharedContext.currentPresentationData.with { $0 } let actionSheet = ActionSheetController(presentationData: presentationData) actionSheet.setItemGroups([ActionSheetItemGroup(items: [ + ActionSheetTextItem(title: presentationData.strings.Notifications_ResetAllNotificationsText), ActionSheetButtonItem(title: presentationData.strings.Notifications_Reset, color: .destructive, action: { [weak actionSheet] in actionSheet?.dismissAnimated()