mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
IsSupported() to hasCapability()
This commit is contained in:
parent
19bc530879
commit
2793dae547
5 changed files with 89 additions and 170 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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', '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue