Move 'you' to end of unnamed groups.

fork-5.53.8
Greyson Parrelli 2021-07-06 12:12:53 -04:00 zatwierdzone przez Alex Hart
rodzic 062e88b24f
commit 383beafdef
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -454,10 +454,6 @@ 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));
@ -469,6 +465,10 @@ public class Recipient {
}
}
if (participants.stream().anyMatch(Recipient::isSelf)) {
names.add(context.getString(R.string.Recipient_you));
}
return Util.join(names, ", ");
} else {
return this.groupName;