kopia lustrzana https://github.com/ryukoposting/Signal-Android
Move 'you' to end of unnamed groups.
rodzic
062e88b24f
commit
383beafdef
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue