Various Improvements

This commit is contained in:
Ilya Laktyushin 2021-11-25 17:39:50 +04:00
parent 9aaa2eb516
commit 24fc19f5fd
2 changed files with 3 additions and 0 deletions

View File

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

View File

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