Monotone-Parent: b2f62cdaa21cb716943261705698e2506dfcb55f

Monotone-Revision: 3ea81af5e61dd4b624e4c1458d66bc7c0829da07

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-26T16:34:25
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-10-26 16:34:25 +00:00
parent 6debe52e72
commit f936d66b8d
2 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2006-10-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactFoldersView.m ([UIxContactFoldersView
-_responseForResults:results]): give priority to results with
"c_uid" fields. If none returned, use the first contact received.
* OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor
-extractQuickFieldsFromEvent:_event]): changed "TENTATIVE" code to
2 and "CANCELLED" to 0.

View File

@ -127,6 +127,21 @@
return email;
}
- (NSDictionary *) _nextResultWithUid: (NSEnumerator *) results
{
NSDictionary *result, *possibleResult;
result = nil;
possibleResult = [results nextObject];
while (possibleResult && !result)
if ([[possibleResult objectForKey: @"c_uid"] length])
result = possibleResult;
else
possibleResult = [results nextObject];
return result;
}
- (WOResponse *) _responseForResults: (NSArray *) results
{
WOResponse *response;
@ -137,7 +152,9 @@
if ([results count])
{
result = [results objectAtIndex: 0];
result = [self _nextResultWithUid: [results objectEnumerator]];
if (!result)
result = [results objectAtIndex: 0];
email = [self _emailForResult: result];
responseString = [NSString stringWithFormat: @"%@:%@",
[result objectForKey: @"c_uid"],