mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-01 08:29:45 +00:00
(Calendar) Limit event block size to a day
This commit is contained in:
@@ -958,6 +958,8 @@ static inline void _feedBlockWithDayBasedData (NSMutableDictionary *block, unsig
|
||||
}
|
||||
quarterStart = (start - dayStart) / quarterLength;
|
||||
delta = end - dayStart;
|
||||
if (delta > dayLength)
|
||||
delta = dayLength;
|
||||
if ((delta % quarterLength))
|
||||
delta += quarterLength;
|
||||
length = (delta / quarterLength) - quarterStart;
|
||||
|
||||
Reference in New Issue
Block a user