fix: remove Nextcloud contacts app direct dependency on nextcloud plugin

NC contacts app is just frontend for contacts & addressbook of NC
server. Nextcloud plugin `auto save recipients on addressbook` feature used to depends on contacts app directly. This commit update that logic.
This commit is contained in:
Fahim Salam Chowdhury 2024-09-05 16:02:45 +06:00
parent 098cc82775
commit cf870df3f8
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,8 @@ class NextcloudAddressBook implements \RainLoop\Providers\AddressBook\AddressBoo
public function IsSupported() : bool
{
// Maybe just return true, contacts app is just a frontend
return \OC::$server->getAppManager()->isEnabledForUser('contacts');
// return \OC::$server->getAppManager()->isEnabledForUser('contacts');
return true;
}
public function SetEmail(string $sEmail) : bool