patch name
This commit is contained in:
		
							parent
							
								
									a5b2c2702c
								
							
						
					
					
						commit
						7ce0fb3cd3
					
				@ -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
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user