replace "Unknown" section with "#" for global search

pull/891/head
Ryan ZHAO 10 months ago
parent 3f3c7321ad
commit 1839d596ce

@ -69,7 +69,7 @@ class GlobalSearchViewController: BaseVC, LibSessionRespondingViewController, UI
let initialCharacter: String = (displayName.length > 0 ? displayName.substring(to: 1) : "")
let section: String = initialCharacter.capitalized.isSingleAlphabet ?
initialCharacter.capitalized :
"Unknown"
"#"
if groupedContacts[section] == nil {
groupedContacts[section] = SectionModel(
@ -96,9 +96,7 @@ class GlobalSearchViewController: BaseVC, LibSessionRespondingViewController, UI
}
}()
if title0.count != title1.count {
return title0.count < title1.count
}
if title0 == "#" { return false }
return title0 < title1
}
)

Loading…
Cancel
Save