fix(ui): Change active user name on top left with primary identity

This commit is contained in:
smizrahi
2022-11-23 14:44:07 +01:00
parent 27860648c1
commit 49879efbc6

View File

@@ -511,7 +511,9 @@
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];