Hide Phone in my profile. Closes #118

This commit is contained in:
Kylmakalle 2025-07-09 15:11:03 +03:00
parent e490a29a37
commit 8c290e9a4e

View File

@ -1416,7 +1416,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 label: String
if formattedPhone.hasPrefix("+888 ") {