Hide Phone in my profile. Closes #118

This commit is contained in:
Kylmakalle 2025-07-09 15:11:03 +03:00
parent cc6b566cdf
commit 90da8ab658

View File

@ -1415,7 +1415,7 @@ private func infoItems(nearestChatParticipant: (String?, Int32?), showProfileId:
})) }))
} }
if let phone = user.phone { if let phone = user.phone, !(SGSimpleSettings.shared.hidePhoneInSettings && isMyProfile) {
let formattedPhone = formatPhoneNumber(context: context, number: phone) let formattedPhone = formatPhoneNumber(context: context, number: phone)
let label: String let label: String
if formattedPhone.hasPrefix("+888 ") { if formattedPhone.hasPrefix("+888 ") {