From c8123be9a358249872c0ec24567b66b23d42e01d Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Thu, 18 Jan 2024 22:45:06 +0400 Subject: [PATCH] Add premium info --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 3 +++ .../SelectivePrivacySettingsController.swift | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index fccf2f6edb0..2174d554eeb 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -10969,3 +10969,6 @@ Sorry for the inconvenience."; "Chat.PrivateMessageSeenTimestamp.Date" = "read %@"; "Chat.PrivateMessageSeenTimestamp.TodayAt" = "read today at %@"; "Chat.PrivateMessageSeenTimestamp.YesterdayAt" = "read yesterday at %@"; + +"Settings.Privacy.ReadTimePremiumActive" = "Subcribed to Telegram Premium"; +"Settings.Privacy.ReadTimePremiumActiveFooter" = "Because you are a Telegram Premium subscriber, you will see the last seen and read time of all users who are sharing it with you – even if you are hiding yours."; diff --git a/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift b/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift index 91a6c4309d8..7ed9d329995 100644 --- a/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift +++ b/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift @@ -865,6 +865,9 @@ private func selectivePrivacySettingsControllerEntries(presentationData: Present if !peer.isPremium { entries.append(.subscribeToPremium(presentationData.theme, presentationData.strings.Settings_Privacy_ReadTimePremium)) entries.append(.subscribeToPremiumInfo(presentationData.theme, presentationData.strings.Settings_Privacy_ReadTimePremiumFooter)) + } else { + entries.append(.subscribeToPremium(presentationData.theme, presentationData.strings.Settings_Privacy_ReadTimePremiumActive)) + entries.append(.subscribeToPremiumInfo(presentationData.theme, presentationData.strings.Settings_Privacy_ReadTimePremiumActiveFooter)) } } }