Fix follow notifications not showing names for users without explicit
display names
This commit is contained in:
parent
7c4bbfd730
commit
5b03e0cf12
|
@ -77,11 +77,11 @@ class FollowNotificationGroupTableViewCell: UITableViewCell {
|
|||
let peopleStr: String
|
||||
switch people.count {
|
||||
case 1:
|
||||
peopleStr = people.first!.displayName
|
||||
peopleStr = people.first!.displayOrUserName
|
||||
case 2:
|
||||
peopleStr = people.first!.displayName + " and " + people.last!.displayName
|
||||
peopleStr = people.first!.displayOrUserName + " and " + people.last!.displayOrUserName
|
||||
default:
|
||||
peopleStr = people.dropLast().map { $0.displayName }.joined(separator: ", ") + ", and " + people.last!.displayName
|
||||
peopleStr = people.dropLast().map { $0.displayOrUserName }.joined(separator: ", ") + ", and " + people.last!.displayOrUserName
|
||||
|
||||
}
|
||||
actionLabel.text = "Followed by \(peopleStr)"
|
||||
|
|
Loading…
Reference in New Issue