Use separate strings for Message Preview selector

This commit is contained in:
Ilya Laktyushin 2021-02-18 20:29:49 +04:00
parent 0c06906352
commit c533642043
4 changed files with 3051 additions and 3046 deletions

View File

@ -6141,3 +6141,6 @@ Sorry for the inconvenience.";
"Channel.AdminLog.MessageAddedAdminNameUsername" = "promoted %1$@ (%2$@)"; "Channel.AdminLog.MessageAddedAdminNameUsername" = "promoted %1$@ (%2$@)";
"Channel.AdminLog.MessageRemovedAdminName" = "demoted %1$@"; "Channel.AdminLog.MessageRemovedAdminName" = "demoted %1$@";
"Channel.AdminLog.MessageRemovedAdminNameUsername" = "demoted %1$@ (%2$@)"; "Channel.AdminLog.MessageRemovedAdminNameUsername" = "demoted %1$@ (%2$@)";
"Notification.Exceptions.MessagePreviewAlwaysOn" = "Always On";
"Notification.Exceptions.MessagePreviewAlwaysOff" = "Always Off";

View File

@ -180,9 +180,9 @@ private enum NotificationPeerExceptionEntry: ItemListNodeEntry {
let title: String let title: String
switch value { switch value {
case .alwaysOn: case .alwaysOn:
title = strings.Notification_Exceptions_AlwaysOn title = strings.Notification_Exceptions_MessagePreviewAlwaysOn
case .alwaysOff: case .alwaysOff:
title = strings.Notification_Exceptions_AlwaysOff title = strings.Notification_Exceptions_MessagePreviewAlwaysOff
} }
return ItemListCheckboxItem(presentationData: presentationData, title: title, style: .left, checked: selected, zeroSeparatorInsets: false, sectionId: self.section, action: { return ItemListCheckboxItem(presentationData: presentationData, title: title, style: .left, checked: selected, zeroSeparatorInsets: false, sectionId: self.section, action: {
arguments.selectDisplayPreviews(value) arguments.selectDisplayPreviews(value)