patch name

This commit is contained in:
cheykrym 2025-10-07 05:41:01 +03:00
parent a5b2c2702c
commit 7ce0fb3cd3

View File

@ -27,26 +27,26 @@ struct SearchProfile: Decodable {
extension UserSearchResult {
var displayName: String {
if let custom = preferredCustomName {
return custom
}
if let official = officialFullName {
return official
}
if let profileCustom = trimmed(profile?.customName) {
return profileCustom
if let custom = preferredCustomName {
return custom
}
if let profileFull = trimmed(profile?.fullName) {
return profileFull
}
if let profileCustom = trimmed(profile?.customName) {
return profileCustom
}
return loginHandle
}
var secondaryText: String? {
// Отдельное поле для совместимости с существующими вызовами
if let official = officialFullName, official != displayName {
return official
}
// if let official = officialFullName, official != displayName {
// return official
// }
if let profileLogin = trimmed(profile?.login), profileLogin != login {
return "@\(profileLogin)"
}
@ -67,9 +67,9 @@ extension UserSearchResult {
var secondaryLabelForSearch: String? {
if let official = officialFullName {
if let custom = preferredCustomName, custom != official {
return custom
}
// if let custom = preferredCustomName, custom != official {
// return custom
// }
if official != loginHandle {
return loginHandle
}