From 58fd5b65398783db7f54b32b84a89adebe5e311b Mon Sep 17 00:00:00 2001 From: Igor Solomennikov Date: Fri, 8 Apr 2022 17:26:56 -0700 Subject: [PATCH] Fix typo that caused incorrect text being displayed in some cases. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " can’t be automatically added to this group by you.." (single person variant) would never be displayed in favor of "These users can’t be automatically added to this group by you..." (multiple persons variant). --- .../NewGroupView/NewGroupConfirmViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift b/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift index c7c92b6a35..4300eb216f 100644 --- a/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift +++ b/Signal/src/ViewControllers/NewGroupView/NewGroupConfirmViewController.swift @@ -1,5 +1,5 @@ // -// Copyright (c) 2021 Open Whisper Systems. All rights reserved. +// Copyright (c) 2022 Open Whisper Systems. All rights reserved. // import Foundation @@ -379,7 +379,7 @@ public class NewGroupConfirmViewController: OWSTableViewController2 { let alertTitle: String let alertMessage: String - if pendingMembers.count > 0 { + if pendingMembers.count > 1 { let alertTitleFormat = NSLocalizedString("GROUP_INVITES_SENT_ALERT_TITLE_N_FORMAT", comment: "Format for the title for an alert indicating that some members were invited to a group. Embeds: {{ the number of invites sent. }}") alertTitle = String(format: alertTitleFormat, OWSFormat.formatInt(pendingMembers.count))