forked from shadowfacts/Tusker
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
|
let peopleStr: String
|
||||||
switch people.count {
|
switch people.count {
|
||||||
case 1:
|
case 1:
|
||||||
peopleStr = people.first!.displayName
|
peopleStr = people.first!.displayOrUserName
|
||||||
case 2:
|
case 2:
|
||||||
peopleStr = people.first!.displayName + " and " + people.last!.displayName
|
peopleStr = people.first!.displayOrUserName + " and " + people.last!.displayOrUserName
|
||||||
default:
|
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)"
|
actionLabel.text = "Followed by \(peopleStr)"
|
||||||
|
|
Loading…
Reference in New Issue