mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Move 'you' to end of unnamed groups.
This commit is contained in:
committed by
Alex Hart
parent
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;
|
||||
|
||||
Reference in New Issue
Block a user