From 7ce0fb3cd324e0b67a5634e1ff16ce048ef1b113 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Tue, 7 Oct 2025 05:41:01 +0300 Subject: [PATCH] patch name --- yobble/Network/SearchModels.swift | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/yobble/Network/SearchModels.swift b/yobble/Network/SearchModels.swift index 3c84a25..2ed1fc2 100644 --- a/yobble/Network/SearchModels.swift +++ b/yobble/Network/SearchModels.swift @@ -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 }