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));