diff --git a/TelegramUI/ContactsController.swift b/TelegramUI/ContactsController.swift index 645dbd9ccf..1fae1d7bf8 100644 --- a/TelegramUI/ContactsController.swift +++ b/TelegramUI/ContactsController.swift @@ -131,9 +131,9 @@ public class ContactsController: ViewController { self.contactsNode.contactListNode.suppressPermissionWarning = { [weak self] in if let strongSelf = self { let presentationData = strongSelf.account.telegramApplicationContext.currentPresentationData.with { $0 } - strongSelf.present(textAlertController(account: strongSelf.account, title: presentationData.strings.Contacts_PermissionsSuppressWarningTitle, text: presentationData.strings.Contacts_PermissionsSuppressWarningText, actions: [TextAlertAction(type: .genericAction, title: presentationData.strings.Notifications_PermissionsKeepDisabled, action: { + strongSelf.present(textAlertController(account: strongSelf.account, title: presentationData.strings.Contacts_PermissionsSuppressWarningTitle, text: presentationData.strings.Contacts_PermissionsSuppressWarningText, actions: [TextAlertAction(type: .genericAction, title: presentationData.strings.Contacts_PermissionsKeepDisabled, action: { ApplicationSpecificNotice.setContactsPermissionWarning(postbox: strongSelf.account.postbox, value: Int32(Date().timeIntervalSince1970)) - }), TextAlertAction(type: .defaultAction, title: presentationData.strings.Notifications_PermissionsEnable, action: { [weak self] in + }), TextAlertAction(type: .defaultAction, title: presentationData.strings.Contacts_PermissionsEnable, action: { [weak self] in if let strongSelf = self { let account = strongSelf.account let _ = (DeviceAccess.authorizationStatus(account: account, subject: .contacts)