fix `not to self`

pull/555/head
Ryan Zhao 3 years ago
parent d329740bd4
commit e4b0ca9ebc

@ -326,6 +326,9 @@ final class ConversationCell : UITableViewCell {
} }
private func getDisplayNameForSearch(_ sessionID: String) -> String { private func getDisplayNameForSearch(_ sessionID: String) -> String {
if threadViewModel.threadRecord.isNoteToSelf() {
return NSLocalizedString("NOTE_TO_SELF", comment: "")
} else {
var result = sessionID var result = sessionID
if let contact = Storage.shared.getContact(with: sessionID), let name = contact.name { if let contact = Storage.shared.getContact(with: sessionID), let name = contact.name {
result = name result = name
@ -333,6 +336,7 @@ final class ConversationCell : UITableViewCell {
} }
return result return result
} }
}
private func getDisplayName() -> String { private func getDisplayName() -> String {
if threadViewModel.isGroupThread { if threadViewModel.isGroupThread {

Loading…
Cancel
Save