Improve recipient shortname selection.

This commit is contained in:
Greyson Parrelli
2024-04-03 10:45:47 -04:00
parent 58c1f64dfe
commit b081fb1e13

View File

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