mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Split system names into first / last.
This commit is contained in:
@@ -89,6 +89,13 @@ public final class ProfileName implements Parcelable {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a profile name that only contains a given name.
|
||||
*/
|
||||
public static @NonNull ProfileName asGiven(@Nullable String givenName) {
|
||||
return fromParts(givenName, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a profile name, trimming chars until it fits the limits.
|
||||
*/
|
||||
|
||||
@@ -74,7 +74,7 @@ class EditGroupProfileRepository implements EditProfileRepository {
|
||||
String title = groupRecord.getTitle();
|
||||
return title == null ? "" : title;
|
||||
})
|
||||
.or(() -> recipient.getName(context));
|
||||
.or(() -> recipient.getGroupName(context));
|
||||
}, nameConsumer::accept);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user