mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-24 03:14:17 +00:00
Monotone-Parent: 9b75a56ce8daf9300f46778c1489c7a8d55088da
Monotone-Revision: 49aa57834a0704767ffea833b67d08d668dd8cb4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-26T18:42:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -38,12 +38,12 @@
|
||||
|
||||
/* accessors */
|
||||
|
||||
- (void) setCurrentContact: (id <SOGoContactObject>) _contact
|
||||
- (void) setCurrentContact: (NSDictionary *) _contact
|
||||
{
|
||||
currentContact = _contact;
|
||||
}
|
||||
|
||||
- (id <SOGoContactObject>) currentContact
|
||||
- (NSDictionary *) currentContact
|
||||
{
|
||||
return currentContact;
|
||||
}
|
||||
@@ -66,6 +66,17 @@
|
||||
return @"fn";
|
||||
}
|
||||
|
||||
- (NSString *) displayName
|
||||
{
|
||||
NSString *displayName;
|
||||
|
||||
displayName = [currentContact objectForKey: @"displayName"];
|
||||
if (!(displayName && [displayName length] > 0))
|
||||
displayName = [currentContact objectForKey: @"cn"];
|
||||
|
||||
return displayName;
|
||||
}
|
||||
|
||||
- (NSString *) sortKey
|
||||
{
|
||||
NSString *s;
|
||||
|
||||
Reference in New Issue
Block a user