diff --git a/Signal/src/Loki/View Controllers/NewClosedGroupVC.swift b/Signal/src/Loki/View Controllers/NewClosedGroupVC.swift index e4da10275..1d904b977 100644 --- a/Signal/src/Loki/View Controllers/NewClosedGroupVC.swift +++ b/Signal/src/Loki/View Controllers/NewClosedGroupVC.swift @@ -122,7 +122,7 @@ final class NewClosedGroupVC : UIViewController, UITableViewDataSource, UITableV OWSProfileManager.shared().addThread(toProfileWhitelist: thread) ModalActivityIndicatorViewController.present(fromViewController: navigationController!, canCancel: false) { [weak self] modalActivityIndicator in let message = TSOutgoingMessage(in: thread, groupMetaMessage: .new, expiresInSeconds: 0) - message.update(withCustomMessage: NSLocalizedString("GROUP_CREATED", comment: "")) + message.update(withCustomMessage: "Closed group created") DispatchQueue.main.async { SSKEnvironment.shared.messageSender.send(message, success: { DispatchQueue.main.async { diff --git a/SignalServiceKit/src/Messages/TSGroupModel.m b/SignalServiceKit/src/Messages/TSGroupModel.m index 1cdbabf4a..5f37780cb 100644 --- a/SignalServiceKit/src/Messages/TSGroupModel.m +++ b/SignalServiceKit/src/Messages/TSGroupModel.m @@ -104,10 +104,12 @@ const int32_t kGroupIdLength = 16; if (self == newModel) { return NSLocalizedString(@"GROUP_UPDATED", @""); } - if (![_groupName isEqual:newModel.groupName] && newModel.groupName.length != 0) { - updatedGroupInfoString = [updatedGroupInfoString - stringByAppendingString:[NSString stringWithFormat:NSLocalizedString(@"GROUP_TITLE_CHANGED", @""), - newModel.groupName]]; + if (![_groupName isEqual:newModel.groupName]) { + if (newModel.groupName.length == 0) { + updatedGroupInfoString = [updatedGroupInfoString stringByAppendingString:@"Closed group created"]; + } else { + updatedGroupInfoString = [updatedGroupInfoString stringByAppendingString:[NSString stringWithFormat:NSLocalizedString(@"GROUP_TITLE_CHANGED", @""), newModel.groupName]]; + } } if (_groupImage != nil && newModel.groupImage != nil && !([UIImagePNGRepresentation(_groupImage) isEqualToData:UIImagePNGRepresentation(newModel.groupImage)])) {