mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
Monotone-Parent: aadd417d36fb0c041ee85a89145a87cc634d7aeb
Monotone-Revision: ad53dc521ff4231b5a6c7a7185ce6deda193e7e8 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-11-12T16:12:23 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
5580d54537
commit
171dfbfb3d
2 files changed
+8
-2
No files matched your search
@@ -962,7 +962,7 @@ static Class sogoAppointmentFolderKlass = Nil;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fetch recurrent apts now. we do NOT consider events with no cycle end. */
|
/* fetch recurrent apts now. we do NOT consider events with no cycle end. */
|
||||||
if (_endDate)
|
if (_endDate || filters)
|
||||||
{
|
{
|
||||||
sql = [NSString stringWithFormat: @"(c_iscycle = 1) %@ %@ %@ %@", titleSqlString,
|
sql = [NSString stringWithFormat: @"(c_iscycle = 1) %@ %@ %@ %@", titleSqlString,
|
||||||
componentSqlString, privacySqlString, filterSqlString];
|
componentSqlString, privacySqlString, filterSqlString];
|
||||||
|
|||||||
@@ -41,10 +41,16 @@
|
|||||||
- (BOOL) isStillRelevant
|
- (BOOL) isStillRelevant
|
||||||
{
|
{
|
||||||
NSCalendarDate *now;
|
NSCalendarDate *now;
|
||||||
|
BOOL isStillRelevent;
|
||||||
|
|
||||||
now = [NSCalendarDate calendarDate];
|
now = [NSCalendarDate calendarDate];
|
||||||
|
|
||||||
return ([[self endDate] earlierDate: now] == now);
|
if ([self isRecurrent])
|
||||||
|
isStillRelevent = ([[self lastPossibleRecurrenceStartDate] earlierDate: now] == now);
|
||||||
|
else
|
||||||
|
isStillRelevent = ([[self endDate] earlierDate: now] == now);
|
||||||
|
|
||||||
|
return isStillRelevent;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSMutableDictionary *) quickRecord
|
- (NSMutableDictionary *) quickRecord
|
||||||
|
|||||||
Reference in new issue
Block a user