mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-10-05 15:30:06 +01:00
Use contact's familyName if givenName is empty
This commit is contained in:
1 parent
4ebd9a02c2
commit
1fef0ec208
1 file changed
+5
-1
@@ -44,10 +44,14 @@ export function combineNames(
|
||||
given?: string,
|
||||
family?: string
|
||||
): undefined | string {
|
||||
if (!given) {
|
||||
if (!given && !family) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!given) {
|
||||
return family;
|
||||
}
|
||||
|
||||
// Users who haven't upgraded to dual-name, or went minimal, will just have a given name
|
||||
if (!family) {
|
||||
return given;
|
||||
|
||||
Reference in new issue
Block a user