mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
Monotone-Parent: bef1f662e1701b836a89ce52809aac40d4c7a964
Monotone-Revision: d3e2768d395c5117bc0c0e5ce9913f9cea531223 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-21T17:42:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
4215ddc817
commit
dd7412cbf1
3 files changed
+48
-2
No files matched your search
@@ -67,7 +67,7 @@
|
||||
{
|
||||
return [NSString stringWithFormat:
|
||||
[self labelForKey: @"Card for %@"],
|
||||
[card fn]];
|
||||
[self fullName]];
|
||||
}
|
||||
|
||||
- (NSString *) displayName
|
||||
@@ -82,6 +82,32 @@
|
||||
value: [card nickname]];
|
||||
}
|
||||
|
||||
- (NSString *) fullName
|
||||
{
|
||||
NSArray *n;
|
||||
NSString *fn;
|
||||
unsigned int max;
|
||||
|
||||
fn = [card fn];
|
||||
if ([fn length] == 0)
|
||||
{
|
||||
n = [card n];
|
||||
if (n)
|
||||
{
|
||||
max = [n count];
|
||||
if (max > 0)
|
||||
{
|
||||
if (max > 1)
|
||||
fn = [NSString stringWithFormat: @"%@ %@", [n objectAtIndex: 1], [n objectAtIndex: 0]];
|
||||
else
|
||||
fn = [n objectAtIndex: 0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return fn;
|
||||
}
|
||||
|
||||
- (NSString *) primaryEmail
|
||||
{
|
||||
NSString *email, *mailTo;
|
||||
|
||||
Reference in new issue
Block a user