From 5b03e0cf12b518c80366e52311af80bcf6bbeb7b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 9 Sep 2020 18:45:38 -0400 Subject: [PATCH] Fix follow notifications not showing names for users without explicit display names --- .../FollowNotificationGroupTableViewCell.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tusker/Views/Notifications/FollowNotificationGroupTableViewCell.swift b/Tusker/Views/Notifications/FollowNotificationGroupTableViewCell.swift index 1303f433e2..e0e5fc7e68 100644 --- a/Tusker/Views/Notifications/FollowNotificationGroupTableViewCell.swift +++ b/Tusker/Views/Notifications/FollowNotificationGroupTableViewCell.swift @@ -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)"