remove cached size from shared calendar objects
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
8e3861563b
commit
19b77039d7
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue