mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 07:17:12 +00:00
Calendar module optimizations in multidomain setup
Conflicts: NEWS UI/Common/UIxUserRightsEditor.m
This commit is contained in:
1 parent
8f49778501
commit
613f05ac02
9 files changed
+68
-34
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* UIxUserRightsEditor.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2007-2014 Inverse inc.
|
||||
* Copyright (C) 2007-2015 Inverse inc.
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -90,6 +90,7 @@
|
||||
|
||||
- (NSString *) userDisplayName
|
||||
{
|
||||
NSDictionary *infos;
|
||||
SOGoUserManager *um;
|
||||
|
||||
if ([self userIsAnonymousUser])
|
||||
@@ -103,9 +104,15 @@
|
||||
else
|
||||
{
|
||||
um = [SOGoUserManager sharedUserManager];
|
||||
return [NSString stringWithFormat: @"%@ <%@>",
|
||||
[um getCNForUID: uid],
|
||||
[um getEmailForUID: uid]];
|
||||
infos = [um contactInfosForUserWithUIDorEmail: uid inDomain: [[context activeUser] domain]];
|
||||
if (infos)
|
||||
{
|
||||
return [NSString stringWithFormat: @"%@ <%@>",
|
||||
[infos objectForKey: @"cn"],
|
||||
[infos objectForKey: @"c_email"]];
|
||||
}
|
||||
else
|
||||
return uid;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user