Include 'you' in dynamic group name.

This commit is contained in:
Greyson Parrelli 2021-06-15 11:37:21 -04:00
parent a9741cadbf
commit be297120a1
2 changed files with 7 additions and 0 deletions

View file

@ -454,6 +454,10 @@ public class Recipient {
List<String> names = new LinkedList<>();
if (participants.stream().anyMatch(Recipient::isSelf)) {
names.add(context.getString(R.string.Recipient_you));
}
for (Recipient participant : others) {
String shortName = participant.getShortDisplayName(context);
int count = Objects.requireNonNull(shortNameCounts.getOrDefault(shortName, 0));

View file

@ -1370,6 +1370,9 @@
<string name="RecaptchaRequiredBottomSheetFragment_to_help_prevent_spam_on_signal">To help prevent spam on Signal, please complete verification.</string>
<string name="RecaptchaRequiredBottomSheetFragment_after_verifying_you_can_continue_messaging">After verifying, you can continue messaging. Any paused messages will automatically be sent.</string>
<!-- Recipient -->
<string name="Recipient_you">You</string>
<!-- RecipientPreferencesActivity -->
<string name="RecipientPreferenceActivity_block">Block</string>
<string name="RecipientPreferenceActivity_unblock">Unblock</string>