From b7ebaa29db035f21a4de4f083bf15ad308c19ab8 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 20 Dec 2018 03:37:27 +0400 Subject: [PATCH] Fixed localization --- TelegramUI/ContactsController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)