mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 11:45:28 +00:00
Improve recipient shortname selection.
This commit is contained in:
@@ -648,8 +648,11 @@ public class Recipient {
|
||||
public @NonNull String getShortDisplayName(@NonNull Context context) {
|
||||
String name = Util.getFirstNonEmpty(getGroupName(context),
|
||||
getNickname().getGivenName(),
|
||||
getNickname().toString(),
|
||||
getSystemProfileName().getGivenName(),
|
||||
getSystemProfileName().toString(),
|
||||
getProfileName().getGivenName(),
|
||||
getProfileName().toString(),
|
||||
getUsername().orElse(null),
|
||||
getDisplayName(context));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user