show name without depending on family name being set

This commit is contained in:
Carlosokumu 2024-11-28 11:28:00 +03:00
parent c8c6b05b8a
commit 00c0445eed
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -1391,10 +1391,14 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte)
// Construct the full name
name := defaultValue
if familyName != defaultValue {
if firstName == defaultValue {
name = familyName
} else {
if firstName != defaultValue {
name = firstName + " " + familyName
} else {
name = familyName
}
} else {
if firstName != defaultValue {
name = firstName
}
}