remove cached size from shared calendar objects
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
8e3861563b
commit
19b77039d7
1 changed files with 16 additions and 0 deletions
|
@ -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 a new issue