Skip to content

Commit

Permalink
fix: remove Nextcloud contacts app direct dependency on nextcloud plugin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Fahim Salam Chowdhury committed Sep 5, 2024
1 parent 098cc82 commit cf870df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/nextcloud/NextcloudAddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ private function GetSavedAddressBookKey() : string
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
Expand Down
2 changes: 1 addition & 1 deletion plugins/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf870df

Please sign in to comment.