* Calendar/eSync: performance optimization: we only want to fetch the owners events, where he is a participant to, as we assume, events feature the user as the organizer only, are of no use in a users calendar on a mobile device

This commit is contained in:
Klaus Leithoff 2012-12-12 13:34:18 +00:00
parent 1a56b1516c
commit 9fd220db83

View File

@ -1241,7 +1241,8 @@ return array(); // temporary disabling meeting requests from calendar
if ($type != 'calendar') return false;
if (!isset($this->calendar)) $this->calendar = new calendar_boupdate();
$ctag = $this->calendar->get_ctag($owner,'owner',true); // true only consider recurrence master
//$ctag = $this->calendar->get_ctag($owner,'owner',true); // true only consider recurrence master
$ctag = $this->calendar->get_ctag($owner,false,true); // we only want to fetch the owners events, where he is a participant too
// workaround for syncstate = 0 when calendar is empty causes synctate to not return 0 but array resulting in foldersync loop
if ($ctag == 0) $ctag = 1;
$changes = array(); // no change