mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: 052f9de55b5ccfe5944c8d715ee190708be0140e
Monotone-Revision: 8268efeb15753e2949b09378244938f0b6bb08a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-29T18:26:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
|
||||
- (NGVCard *) vCard
|
||||
{
|
||||
NSArray *cards;
|
||||
NSString *contentStr;
|
||||
|
||||
if (!card)
|
||||
@@ -57,17 +56,14 @@
|
||||
contentStr = [self contentAsString];
|
||||
if ([contentStr hasPrefix:@"BEGIN:VCARD"])
|
||||
{
|
||||
cards = [NGVCard parseVCardsFromSource: contentStr];
|
||||
if ([cards count] > 0)
|
||||
{
|
||||
card = [cards objectAtIndex: 0];
|
||||
[card retain];
|
||||
}
|
||||
else
|
||||
card = [NGVCard new];
|
||||
card = [NGVCard parseSingleFromSource: contentStr];
|
||||
[card retain];
|
||||
}
|
||||
else
|
||||
card = [NGVCard new];
|
||||
{
|
||||
card = [NGVCard new];
|
||||
[card setTag: @"vcard"];
|
||||
}
|
||||
}
|
||||
|
||||
return card;
|
||||
|
||||
Reference in New Issue
Block a user