Fix follow notifications not showing names for users without explicit

display names
This commit is contained in:
Shadowfacts 2020-09-09 18:45:38 -04:00
parent 7c4bbfd730
commit 5b03e0cf12
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 3 deletions

View File

@ -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)"