|
|
|
@ -130,8 +130,8 @@ class AddressBook extends ExternalAddressBook implements IACL { |
|
|
|
|
/** |
|
|
|
|
* @inheritDoc |
|
|
|
|
*/ |
|
|
|
|
public function getLastModified() { |
|
|
|
|
throw new NotImplemented(); |
|
|
|
|
public function getLastModified(): ?int { |
|
|
|
|
return $this->mapper->findLastUpdatedForUserId($this->getUid()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -149,6 +149,7 @@ class AddressBook extends ExternalAddressBook implements IACL { |
|
|
|
|
'principaluri' => $this->principalUri, |
|
|
|
|
'{DAV:}displayname' => $this->l10n->t('Recently contacted'), |
|
|
|
|
'{' . Plugin::NS_OWNCLOUD . '}read-only' => true, |
|
|
|
|
'{' . \OCA\DAV\CalDAV\Plugin::NS_CALENDARSERVER . '}getctag' => 'http://sabre.io/ns/sync/' . ($this->getLastModified() ?? 0), |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|