IsSupported() to hasCapability()

This commit is contained in:
the-djmaze 2022-12-18 13:55:00 +01:00
parent 19bc530879
commit 2793dae547
5 changed files with 89 additions and 170 deletions

View file

@ -94,7 +94,7 @@ class KolabAddressBook implements \RainLoop\Providers\AddressBook\AddressBookInt
public function IsSupported() : bool
{
// Check $this->ImapClient()->IsSupported('METADATA')
// Check $this->ImapClient()->hasCapability('METADATA')
return true;
}

View file

@ -59,7 +59,7 @@ class KolabPlugin extends \RainLoop\Plugins\AbstractPlugin
public function FilterAppData($bAdmin, &$aResult) : void
{
// if ImapClient->IsSupported('METADATA')
// if ImapClient->hasCapability('METADATA')
if (!$bAdmin && \is_array($aResult) && !empty($aResult['Auth'])) {
$aResult['Capa']['Kolab'] = true;
$aResult['KolabContactFolder'] = (string) $this->Settings()->GetConf('KolabContactFolder', '');