Add premium info

This commit is contained in:
Isaac 2024-01-18 22:45:06 +04:00
parent 1cd94e91fd
commit c8123be9a3
2 changed files with 6 additions and 0 deletions

View File

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

View File

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