Fix group name handling

pull/80/head
Niels Andriesse 6 years ago
parent 5de7c452cf
commit 425509d4f8

@ -371,8 +371,8 @@ public class NotificationPresenter: NSObject, NotificationsProtocol {
notificationTitle = senderName
case is TSGroupThread:
var groupName = thread.name()
if groupName.count < 1 || groupName == "New Group" {
groupName = DisplayNameUtilities.getDisplayName(for: thread as! TSGroupThread)
if groupName.count < 1 {
groupName = MessageStrings.newGroupDefaultTitle
}
notificationTitle = String(format: NotificationStrings.incomingGroupMessageTitleFormat,
senderName,

Loading…
Cancel
Save