remove cached size from shared calendar objects

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2017-11-12 17:30:22 +01:00
parent 8e3861563b
commit 19b77039d7
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 16 additions and 0 deletions

View File

@ -32,6 +32,22 @@ use Sabre\VObject\Reader;
class CalendarObject extends \Sabre\CalDAV\CalendarObject {
/**
* CalendarObject constructor.
*
* @param CalDavBackend $caldavBackend
* @param array $calendarInfo
* @param array $objectData
*/
public function __construct(CalDavBackend $caldavBackend, array $calendarInfo,
array $objectData) {
parent::__construct($caldavBackend, $calendarInfo, $objectData);
if ($this->isShared()) {
unset($this->objectData['size']);
}
}
/**
* @inheritdoc
*/