mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 21:08:51 +00:00
fix(ui): Change active user name on top left with primary identity
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user