Skip to content

Commit

Permalink
fix(ui): Change active user name on top left with primary identity
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodySlum committed Nov 23, 2022
1 parent 2786064 commit 49879ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UI/Common/UIxPageFrame.m
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ - (NSString *) userIdentification
NSString *v;

/* The "identification" term is used in the human sense here. */
if ([[context activeUser] primaryIdentity] && [[[context activeUser] primaryIdentity] objectForKey:@"fullName"]) {
if ([[context activeUser] primaryIdentity]
&& [[[context activeUser] primaryIdentity] objectForKey:@"fullName"]
&& [[[[[context activeUser] primaryIdentity] objectForKey:@"fullName"] stringByReplacingOccurrencesOfString:@" " withString:@""] length] > 0) {
v = [[[context activeUser] primaryIdentity] objectForKey:@"fullName"];
} else {
v = [[context activeUser] cn];
Expand Down

0 comments on commit 49879ef

Please sign in to comment.