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

View file

@ -2,7 +2,7 @@
## Nextcloud Addressbook for recipients
This plugin can let user to choose which nextcloud addressbook to use save recipients. This is opt-in feature (enabled by admin). After admin enable this, user will find a dropdown in his/her SnappyMail's `Contacts` section, containing all his/her addressbook.
This plugin can let user to choose which nextcloud addressbook to use save recipients. This is opt-in feature (enabled by admin). After admin enable this, user will find a dropdown in his/her SnappyMail's `Contacts` section, containing all his/her addressbook. It works better with [Nextcloud Contacts App](https://github.com/nextcloud/contacts/)
### Admin settings